You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetProfessionals-Group
use tennis
go
declare @states nvarchar(100)
declare @c1 cursor
set @c1= cursor for select state from usertable for update of state
update usertable set state='Kanpur' where current of @c1
open @c1
fetch next from @c1 into @states
WHILE @@FETCH_STATUS = 0
BEGIN
print @states
update usertable set state='Kanpur' where current of @c1
fetch next from @c1 into @states