Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 30th, 2006, 12:58 PM
vic vic is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 1 vic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 55 sec
Reputation Power: 0
Unhappy Dts , stored proc with output parameters

hi,
i have a stored proc that has output parameters and i want to save the output to a global variable.

the query in the execute sql task looks like this
exec mystoredproc ?,?,?,?

where the 1st three are inputs from global variables and the fourth one is the output parameter which needs to show up.
the output of the stored proc is a long string.

when i execute the step, the package runs fine, but no value seems to be stored in the output global variable.
could you please help me with this.
any help is greatly appreciated.

Reply With Quote
  #2  
Old December 12th, 2006, 06:37 AM
Jefy Jefy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 3 Jefy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 58 sec
Reputation Power: 0
First you can declare a global variable for receiving output value "@outval" . Next execute stored procedure with output parameter with "output" key word.

declare @outval as varchar(100)

exec mystoredproc ?,?,?,@outval output

print @outval


Jefy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Dts , stored proc with output parameters


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT