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)
 Help! !SQL stored Procedure output parameter.

Author  Topic 

sherinbranch
Starting Member

7 Posts

Posted - 2006-02-24 : 12:26:22
I am calling a procedure with two input parameters and one output parameter (third) in the following format. I'm receiving a database error on the return parameter. *result. What is the correct syntax for an output parameter.

Code:
CSTRING strSQL;
strSQL.Format("BEGIN EQUIPMENT_UTILITIES.MOVE_EQUIPMENT('%s', '%s', '%d'); END;",(LPCSTR)lpEQNum,(LPCSTR)lpMoveTo, result); <-Failing
at '%d' result.

Thanks.

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2006-02-24 : 12:35:17
Cross post:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=62331
Go to Top of Page

sherinbranch
Starting Member

7 Posts

Posted - 2006-02-24 : 21:55:51
I am using PL/SQL I have this in my C code... Oracle 9i
I am new to this

BEGIN EQUIPMENT_UTILITIES.MOVE_EQUIPMENT(EQNUM, MoveTo, ? ); END;"

*the third argument should be an output param not sure how to do this.
*it's in a CString format
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-25 : 00:31:18
This is a MS SQL Server forums. Try posting your question in dbforums or other oracle forum.

----------------------------------
'KH'

It is inevitable
Go to Top of Page
   

- Advertisement -