I have a programmer that would like to be able to pull information out of a table one row at a time. I know that cursors are performance killers and not a good option...I'm just not sure if there is any other way to do this. The cursor we have now pulls out the info one row at a time...but lists all of them.
DECLARE Login_Cursor CURSOR FOR
SELECT strLoginName FROM LoginInfo
OPEN Login_Cursor
FETCH NEXT FROM Login_Cursor
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM Login_Cursor
END
CLOSE Login_Cursor
DEALLOCATE Login_Cursor
Does anyone out there have a solution or other ideas as how to approach this problem?
Thank you!
DECLARE Login_Cursor CURSOR FOR
SELECT strLoginName FROM LoginInfo
OPEN Login_Cursor
FETCH NEXT FROM Login_Cursor
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM Login_Cursor
END
CLOSE Login_Cursor
DEALLOCATE Login_Cursor
Does anyone out there have a solution or other ideas as how to approach this problem?
Thank you!