Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor syntax
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Cursor syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01340333
Message ID:
01340333
Views:
58
Hi all!

I need to create a cursor using the following syntax but I need to define my Select String base on the values that I receive. In other word I need to construct the Select statement first. Can I do that?

Declare @SQLStatement = "Select * From AOP_Financial Journal"

declare TempGregorio CURSOR for @SQLStatement.
Gregorio J. Placeres
IT Analyst
Uniform Accounting Network
Auditor of State of Ohio
88 East Broad Street
P.O. Box 1140
Columbus, Ohio 43216-1140

Tel. 614-728-4694

Gregorio_J@MSN.COM

http://www.gjpproductions.com
Next
Reply
Map
View

Click here to load this message in the networking platform