Home Forums SQL Server 7,2000 General Inserting rows Using Cursors in Stored Procedure RE: Inserting rows Using Cursors in Stored Procedure
Ben Schonenberg
SSC Journeyman
Points: 96
More actions
June 28, 2010 at 1:08 am
#1185547
If you insist on using a cursor.
You should check the @@getstatus after the fetch next or, before the fetch next, initialze your variable on NUll and after the fetch next, test if the variable is not null