1) Declaring Cursor differs in sql server 2000 from that of sql server 2005.
In sql server 2000,we issue the below command :
declare cursorinput CURSOR for select........
In sql server 2005,we issue the below command :
declare @cu cursor
set @cu=CURSOR for select.......