Ok I would like to know how best to increase and speed up the performace of my program fetching data over the internet using ADO
Con.Connectionstring "Driver={SQL Server};" & _
"Server=xxx.xxx.xxx.xxx;" & _
"Address=xxx.xxx.xxx.xxx,1433;" & _
"Network=DBMSSOCN;" & _
"Database=myDatabaseName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
con.open
Set Rec = New ADODB.Recordset
With Rec
.CursorLocation = adUseClient
.LockType = adLockReadOnly
.Open "SELECT * FROM " & Tbl & " WHERE(((" & Tbl & ".level)=" & Lvl & "
);", Con
.ActiveConnection = Con
.MoveFirst
.CacheSize = 10
End With
ok any ideas where I could improve performance?
Sometimes its a quick as a whip sometimes it can take upto 30seconds to get data, dunno if thats just connection issues at times or anything else just wanna check with you Gurus if I have done it the best possiable way
Con.Connectionstring "Driver={SQL Server};" & _
"Server=xxx.xxx.xxx.xxx;" & _
"Address=xxx.xxx.xxx.xxx,1433;" & _
"Network=DBMSSOCN;" & _
"Database=myDatabaseName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
con.open
Set Rec = New ADODB.Recordset
With Rec
.CursorLocation = adUseClient
.LockType = adLockReadOnly
.Open "SELECT * FROM " & Tbl & " WHERE(((" & Tbl & ".level)=" & Lvl & "
.ActiveConnection = Con
.MoveFirst
.CacheSize = 10
End With
ok any ideas where I could improve performance?
Sometimes its a quick as a whip sometimes it can take upto 30seconds to get data, dunno if thats just connection issues at times or anything else just wanna check with you Gurus if I have done it the best possiable way