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!

FETCH_STATUS = -1 ...WHY?

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
I have a cursor set up within an insert trigger on a table that selects all of the records from "inserted". However after I perform my fetch, the FETCH_STATUS is returning a value of -1. I perform the following immediately before opening and fetching from the cursor just to check to make sure the proper values are in the inserted table:

select * from inserted

and when I insert a record into the target table, the values returned from the above query are correct. However after the cursor is opened and the fetch is performed from inserted, I get a fetch_status of -1. Why would this be happening?

Thanks,
Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top