Board index » delphi » Problem when run SQL stored proc (with cursor) from Delphi
Jingyi Peng
![]() Delphi Developer |
Mon, 05 Jan 2004 07:09:14 GMT
Problem when run SQL stored proc (with cursor) from Delphi
I have a stored proc on SQL as below:
******************************************* DECLARE DECLARE csr1 CURSOR FOR OPEN csr1 EXEC pPairStatDetail1 @PairID, @Tag, @StartDate, @EndDate UPDATE tmpPairTrades SET WL = (SELECT iWL FROM tmpPairDetail1 WHERE iGrandSymbolPK = @PairID IF (@@fetch_Status <> 0 ) BREAK END This works fine on SQL (using Query Analyser), ********************************************** I got error message saying "error creating cursor handle", what's the Thanks a lot. Jingyi |