Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting from a cursor
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Selecting from a cursor
Miscellaneous
Thread ID:
00531118
Message ID:
00531118
Views:
53
I am using a cursor in code to to perform a loop. This cursor gets updated within the loop when certain conditions are met. This is all good.

What I need to do after the loop is SELECT all the records from the cursor that are not within another table.

Does SQL Server 7 allow a SELECT from a cursor.

My syntax is:

SELECT * FROM cursorname
WHERE fieldname NOT IN (SELECT otherfieldname FROM table)
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform