Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Delete rows from the table using cursor Expand / Collapse
Author
Message
Posted Thursday, January 17, 2013 1:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 17, 2013 1:04 AM
Points: 1, Visits: 6
Hi, Nandy
Perhaps you should modify your cursor query into this.

declare test_cursor cursor for
select * from test WITH(NOLOCK)

to be able to make alteration to the table
Post #1408196
Posted Thursday, January 17, 2013 4:12 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, November 19, 2014 5:03 AM
Points: 2,840, Visits: 3,975
PLease note.4 years old thread.

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done
Post #1408317
Posted Monday, January 21, 2013 6:11 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 1:35 AM
Points: 971, Visits: 3,008
tcomponent (1/17/2013)
Hi, Nandy
Perhaps you should modify your cursor query into this.

declare test_cursor cursor for
select * from test WITH(NOLOCK)

to be able to make alteration to the table





The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Post #1409524
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse