Why does
"DECLARE @rtnRecs int;EXEC ss_GetStatementData @sAccountNr = '1234ABC', @iValidRecords = @rtnRecs OUTPUT"
run in 50ms in a query window and get a timeout (command timeout set to 120) in VB6?
The query goes through around 900k records and returns 100.
VB6 statement is "rs.open sql" where sql is the above statement. "set rs=conn.execute(sql)" has the same effect.
When the SQL service is restarted the problem vanishes.
Thank you for your help
"DECLARE @rtnRecs int;EXEC ss_GetStatementData @sAccountNr = '1234ABC', @iValidRecords = @rtnRecs OUTPUT"
run in 50ms in a query window and get a timeout (command timeout set to 120) in VB6?
The query goes through around 900k records and returns 100.
VB6 statement is "rs.open sql" where sql is the above statement. "set rs=conn.execute(sql)" has the same effect.
When the SQL service is restarted the problem vanishes.
Thank you for your help