ongwc
January 21st, 2003, 12:31 AM
Hi all,
I have this problem, everytime I load my ASP I got this "[Microsoft][ODBC SQL Server Driver]Timeout expired" error, I have checked and tried runing my "Stored Procedure/Query" in "MSSQL Query Analyzer" it only took less than 1 second to complete but how come the ASP said "timout expired"? Here is my code:
strDBConn = "driver={SQL Server};server=My_Server_IP;database=My_DB;uid=uid;
pwd=pwd"
strSQL = "exec My_SP 1;"
strSQL = strSQL & "exec My_SP 2;"
strSQL = strSQL & "exec My_SP 3;"
strSQL = strSQL & "exec My_SP 4"
Set adoRsl = Server.CreateObject("ADODB.Recordset")
adoRsl.CursorLocation = adUseClient
adoRsl.Open strSQL, strDBConn, adOpenForwardOnly,
adLockReadOnly
Do While Not adoRsl.EOF
...
Loop
Set adoRsl = adoRsl.NextRecordset
Do While Not adoRsl.EOF
...
Loop
...
Does anyone know how to solve this problem?
Thanks for your time...
I have this problem, everytime I load my ASP I got this "[Microsoft][ODBC SQL Server Driver]Timeout expired" error, I have checked and tried runing my "Stored Procedure/Query" in "MSSQL Query Analyzer" it only took less than 1 second to complete but how come the ASP said "timout expired"? Here is my code:
strDBConn = "driver={SQL Server};server=My_Server_IP;database=My_DB;uid=uid;
pwd=pwd"
strSQL = "exec My_SP 1;"
strSQL = strSQL & "exec My_SP 2;"
strSQL = strSQL & "exec My_SP 3;"
strSQL = strSQL & "exec My_SP 4"
Set adoRsl = Server.CreateObject("ADODB.Recordset")
adoRsl.CursorLocation = adUseClient
adoRsl.Open strSQL, strDBConn, adOpenForwardOnly,
adLockReadOnly
Do While Not adoRsl.EOF
...
Loop
Set adoRsl = adoRsl.NextRecordset
Do While Not adoRsl.EOF
...
Loop
...
Does anyone know how to solve this problem?
Thanks for your time...