Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 can we use CURSOR as optional output parameter??

Author  Topic 

janbhani
Starting Member

2 Posts

Posted - 2007-04-06 : 04:02:59
can we use cursor as an optional output parameter as we are using @p_strLevel as below.


CREATE PROCEDURE dbo.GET_AMOUNT
( @p_strUserId VARCHAR(64),
@p_strLevel VARCHAR(64)= 'APPLICATION_LEVEL',
@returnCursor CURSOR VARYING OUTPUT = NULL (here raising syntax error)
)

jkumar

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-04-06 : 11:25:28
I dont think so. What are you trying to return through the cursor?

************************
Life is short. Enjoy it.
************************
Go to Top of Page
   

- Advertisement -