Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Update Cursor Records !?

Status
Not open for further replies.

dougcoulter

Programmer
Joined
Mar 16, 2001
Messages
112
Location
US
I think I am losing my mind. I have a stored procedure using a cursor (in SQL 7.0) to update some records (and I swear it was working yesterday!), but I now am receiving the following message for each record update attempt:

Server: Msg 16947, Level 10, State 1, Line 32334296
No rows were updated or deleted.
The statement has been terminated.

The statements in question are:

UPDATE OpModeHistory
SET Occurrence = 2
WHERE CURRENT OF OpModeCursor

I do not seem to have any syntax issues. Any ideas?

Thanks...
 
Thanks for the response. My cursor is based on a simple select on a single table though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top