i'm trying to port an oracle script to sql server that makes use of cursors. in oracle, i can fetch from a cursor into a record that mirrors the cursor structure using %rowtype.
for example...
Code:
cursor c is select * from t;
r c%rowtype;
open c;
fetch c into r;
can i do something similar in sql server, or do i have to fetch into a single variable for each table column (fetch next from c into @f1, @f2, @f3, @f4)?
thanks,
glenn