Inside store procedure, we try to delete top row from a table @Table
Declare @Temp Table (ItemNumber int Primary key)
Insert into @Temp
select 1
Union
Select 2
Delete Top (1) From @Temp
select * from @Temp
we separately try above bold lines code, it works,
However, when this section script inside store procedure, it does not work.
The section code is actually inside a cursor. Does cursor cause any problem?
Anyone know what is reason? Thx!
JaneC