Login    
 
 
 
 
Text/HTML
  
You are here :: Blogs Saturday, May 19, 2012

Search
Note: This uses the internal blog search engine. The Google search engine is also available at the top of the page.
  
Disclaimer

Please review the site disclaimer before downloading or using content found on this site

  
Categories
  
DEVSHED Blog
As always, I welcome your comments!
Jul 3

Written by: Steve Gray
7/3/2009 1:25 PM  RssIcon

Creating a stored procedure with an OUTPUT parameter is not a difficult task, but I have to do it quite often and it is convenient for me to blog it here, so that I have an easily accessible example

Create the stored procedure like this:

CREATE PROCEDURE _4P_test 
 
@intInput int,
@intOutput int OUTPUT
 
AS
set @intOutput = @intInput + 1 
 
go
 

 

and call it like this:

declare @intResult int
exec _4P_test 3 ,@intResult OUT
select @intResult

Tags:
Categories:
Location: Blogs Parent Separator DEVSHED Blogs Child Separator SQL
As always, I welcome your comments!
  
 
 
Home | Products | Blogs | Contact Us | Links | God's Plan
Privacy Statement | Terms Of Use
 
Copyright 2011 by Devshed.us