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
 SQL Server Development (2000)
 Stored Procedure Return Values

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-02-22 : 07:37:17
TK writes "I am running a stored procedure and need to have the return value be a decimal. I have been unable to make this happen and would appreciate any suggestions

Thanks, TK"

nr
SQLTeam MVY

12543 Posts

Posted - 2005-02-22 : 11:31:23
Can't do it with the return value - that's an integer.
Use an output parameter instead.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Xerxes
Aged Yak Warrior

666 Posts

Posted - 2005-02-22 : 11:49:58
Wouldn't a UDF serve that purpose (returning a value)?

Semper fi, Xerxes, USMC(Ret.)
--------------------------------------------------
Once a Marine ALWAYS a Marine!
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2005-02-24 : 01:57:06
No more than an sp but with less flexibility.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -