MS SQL Declaring Cursors
DECLARE my_cursor CURSOR FOR SELECT * FROM TableName OPEN my_cursor FETCH NEXT FROM my_cursor;