Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating cursors to pass parameters in SQl Server 2000

Status
Not open for further replies.

9654

Programmer
Aug 4, 2003
34
US
I was wondering if Sql Server has feature like oracle where you can declare cursors and declare parameters to pass to it.


I need to call a cursor in a cursor and that cursor is based on the values of the previous cursor.

So i want to declare both the cursors at the top and pass parameters to the second cursors.

In the Sql Server help it asks to declare it inside again and that is bad for performance.

 
You may be able to create and execute the inner cursor w/ the use of Dynamic SQL statement.

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top