Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

slow connection

Status
Not open for further replies.

shaminda

Programmer
Jun 9, 2000
170
US
I have a program in VB that users a SQL Server 7.0 database and it take about 2 - 4 minutes to make the connection. I can't figure out why its taking so long. Here is my code:


Set rsPartLbl = New ADODB.Recordset

With rsPartLbl
.CursorLocation = adUseClient
.CursorType = adOpenDynamic
.LockType = adLockOptimistic
End With

rsPartLbl.Open "TRWPARTLBL", conn

its the last line that takes time.



 
Have you tried rsPartLbl.Open "select * from TRWPARTLBL", conn?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top