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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 same Parameter of Stored procedure as input/outpu
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Azhar Iqbal
Starting Member

Pakistan
2 Posts

Posted - 06/03/2009 :  07:14:50  Show Profile  Reply with Quote
dear all,
Can I use one parameter for input and output purpose at the same time in stored Procedure.
Thanks
Azhar
Pakistan

Left elbow has cut.

madhivanan
Premature Yak Congratulator

India
22864 Posts

Posted - 06/03/2009 :  09:08:36  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Like this

create procedure test(@inout int out)
as
select @inout= @inout*2

go

declare @i int
set @i=45
select @i
exec test @i output
select @i


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000