Darth Bagel
Limp Gawd
- Joined
- Feb 1, 2005
- Messages
- 383
I'm having trouble with a cursor in a project I'm working on. I try to declare it as being for update, and SQL server claims that it's a read-only cursor and therefore can't be declared for update. So far I've had the DBA and another programmer look at it, and we haven't found anything. I'm using this code to declare the cursor:
Code:
DECLARE trades_cursor CURSOR
FOR
SELECT fncode,symbol,trxnum,sacode,ttcode,qty,stcode,brcode,basketid FROM #trades ORDER BY fncode, sacode, symbol, trddate
FOR UPDATE OF startqty, qty, endqty, errorflag