Hi
I have a problem selecting records from a transaction table for a specific period. The query goes like this:
DECLARE @d1 datetime
,@d2 datetime
SET @d1 = '1/Jan/2012'
SET @d2 = '11/Jan/2012'
SELECT DISTINCT BuyerName
FROM TransactionsList WITH (nolock)
WHERE trnDate BETWEEN...
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"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.