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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declaring Two cursors in a stored procedure

Status
Not open for further replies.

balachandar

Programmer
Apr 16, 2001
88
CA
Hi All,
I am just trying to build a procedure with two cursors. Depending on the parameter passed either one of them will be opened. This is the code I have written. I am not able to compile it. Please let me know how I can do it correctly.
I mean the question is how can declare two cursors in a program and open only one conditionally.
Balachandar Ganesan.

 
You should be able to examine the parameter passed and then progamatically branch to the specific cursor required. There should not be any problem with doing this. To help you further I think I may need to know operating system, language etc.

Marc
 
Balachandar,

please post your code and we may be able to help you.


Cheers
Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top