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 2005 Forums
 Transact-SQL (2005)
 Output parameter

Author  Topic 

shapper
Constraint Violating Yak Guru

450 Posts

Posted - 2007-02-09 : 13:34:58
Hello,

How can I create an output parameter in an SQL procedure?
And how can I define a default value and also to change its value?

Thanks,
Miguel

X002548
Not Just a Number

15586 Posts

Posted - 2007-02-09 : 13:52:20
You need to specify OUTPUT in the sproc

Do you know what Books online is?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

shapper
Constraint Violating Yak Guru

450 Posts

Posted - 2007-02-09 : 14:05:01
Hi,

Yes. I was using it right. I just needed to confirm.
I am starting to use Enterprise Library and I couldn't not figure why my code was not working.
I though it was something on the SQL procedure but in fact the problem was in my .NET code since there were a few changes between Enterprise Library version 1.0 and 2.0.

Thanks,
Miguel
Go to Top of Page
   

- Advertisement -