I have a table with one field: lngStatusID with value 2 for all the records.
Now I need to insert all the records again in the same table but with lngStatusID=1
So for that I think stored procedure will help me somehow.
AS per my logic it should be something like:
1) I need to read each record with loop
2) copy all fields in temporary variables
3) And than execute insert query to insert the record with lngStatusID=1
I am new to stored procedure. So can any one guide me how to do that?
Or is there any easy way to do so?