im quite of an oracle guy, and ive been using cursors for my stored procedures, etc.
now that a client has chosen to use sql server 2000 for the back-end database, well, obviously, i have to relearn to do things in the new platform.
one thing i do find (could someone correct me in this) is the poor implementation of cursors in sql server (as compared to oracle).
1. there is nothing similar to ROWTYPE which would allow me to take a record from a table with numerous columns - in sql server, i have to define each and every column before i can use the INTO clause
2. in order to loop through the cursor in sql server, i have to execute FETCH FROM once BEFORE entering a LOOP, then do it once more INSIDE the loop
3. i need to execute TWO LINES of CODE just to "disable" a cursor
talk about inefficiency... but if someone could point me to better methods, processes, etc. i would really appreciate it. or some urls that i could check and somehow change my way of thinking.
as of now, im really quite frustrated.
thanks.
now that a client has chosen to use sql server 2000 for the back-end database, well, obviously, i have to relearn to do things in the new platform.
one thing i do find (could someone correct me in this) is the poor implementation of cursors in sql server (as compared to oracle).
1. there is nothing similar to ROWTYPE which would allow me to take a record from a table with numerous columns - in sql server, i have to define each and every column before i can use the INTO clause
2. in order to loop through the cursor in sql server, i have to execute FETCH FROM once BEFORE entering a LOOP, then do it once more INSIDE the loop
3. i need to execute TWO LINES of CODE just to "disable" a cursor
talk about inefficiency... but if someone could point me to better methods, processes, etc. i would really appreciate it. or some urls that i could check and somehow change my way of thinking.
as of now, im really quite frustrated.
thanks.