Hi guys,
I trying to return a lot of records (the table holds 30,000,000 records) from the MS SQL. The lines to call the stored procedure are as follow:
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionTimeout = 0
conn.CommandTimeout = 0
set objrs = Server.CreateObject("ADODB.Recordset")
conn.CursorLocation = 3
conn.Open "ConnectionString"
Set oCom = Server.CreateObject("ADODB.Command")
with oCom
.activeconnection = conn
.commandtext = "sp_BringSearchResultsDate"
.commandtype = 4
.Parameters.Append .CreateParameter("@SD", 7, 1, 1, trim(Request("start")))
.Parameters.Append .CreateParameter("@ED", 7, 1, 1, trim(Request("end")))
end with
set objrs = oCom.Execute
Set conn = nothing
Set oCom = nothing
When I query the table I receive Connection.Timeout
Is there a way not to get this error amd still return all the records?
Thx,
TMRO
I trying to return a lot of records (the table holds 30,000,000 records) from the MS SQL. The lines to call the stored procedure are as follow:
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionTimeout = 0
conn.CommandTimeout = 0
set objrs = Server.CreateObject("ADODB.Recordset")
conn.CursorLocation = 3
conn.Open "ConnectionString"
Set oCom = Server.CreateObject("ADODB.Command")
with oCom
.activeconnection = conn
.commandtext = "sp_BringSearchResultsDate"
.commandtype = 4
.Parameters.Append .CreateParameter("@SD", 7, 1, 1, trim(Request("start")))
.Parameters.Append .CreateParameter("@ED", 7, 1, 1, trim(Request("end")))
end with
set objrs = oCom.Execute
Set conn = nothing
Set oCom = nothing
When I query the table I receive Connection.Timeout
Is there a way not to get this error amd still return all the records?
Thx,
TMRO