dbTalk Databases Forums  

output

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss output in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ed
 
Posts: n/a

Default output - 08-25-2004 , 08:57 PM






Hi,
I have two questions that I have no idea how it works.
1. I created a stored procedure that returns a value after execution
e.g.
Create Procedure try @output nvarchar(50) output as .... return
how am i able to get the output value from the stored procedure using DTS, I
do it in Execute SQL Task or ???
2. How am i able to fire a stored procedure using Active X Script

Thanks
Ed

Reply With Quote
  #2  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: output - 08-26-2004 , 04:24 PM






If you are talking about capturing the value of an OUTPUT parameter, then it
is the same as you normally would - you'll have to do that in an Execute SQL
task.

To be able to run a stored proc from an ActiveX script, you'll have to
instantiate an ADO connection object, just like you would in a normal
VBScript application.

Is this enough to get you started? If not, post back, and someone will post
an example for you.
--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/


"Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
I have two questions that I have no idea how it works.
1. I created a stored procedure that returns a value after execution
e.g.
Create Procedure try @output nvarchar(50) output as .... return
how am i able to get the output value from the stored procedure using DTS,
I
do it in Execute SQL Task or ???
2. How am i able to fire a stored procedure using Active X Script

Thanks
Ed



Reply With Quote
  #3  
Old   
Ed
 
Posts: n/a

Default RE: output - 08-26-2004 , 06:19 PM



First of all, thanks for your answer...
The main problem i have is in Execute SQL Task, i put something like
Declare @output nvarchar(10)
Exec ProcedureName @output output

it failed, and i don't know how to put that output parameter into a Global
Variable,
that's why I asked if it should be done in Active X Script...
If it has to be done in Active X Script, the code is like
dim cmd as new adodb.command
set cmd.activeconnection = xxx
cmd.commandtext = xxx
....
....
right?

Thanks again.
Ed

"Ed" wrote:

Quote:
Hi,
I have two questions that I have no idea how it works.
1. I created a stored procedure that returns a value after execution
e.g.
Create Procedure try @output nvarchar(50) output as .... return
how am i able to get the output value from the stored procedure using DTS, I
do it in Execute SQL Task or ???
2. How am i able to fire a stored procedure using Active X Script

Thanks
Ed

Reply With Quote
  #4  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: output - 08-27-2004 , 01:18 AM



This is covered on SQLDTS.com. See: http://www.sqldts.com/default.aspx?234

--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/


"Ed" <Ed (AT) discussions (DOT) microsoft.com> wrote

Quote:
First of all, thanks for your answer...
The main problem i have is in Execute SQL Task, i put something like
Declare @output nvarchar(10)
Exec ProcedureName @output output

it failed, and i don't know how to put that output parameter into a Global
Variable,
that's why I asked if it should be done in Active X Script...
If it has to be done in Active X Script, the code is like
dim cmd as new adodb.command
set cmd.activeconnection = xxx
cmd.commandtext = xxx
...
...
right?

Thanks again.
Ed

"Ed" wrote:

Hi,
I have two questions that I have no idea how it works.
1. I created a stored procedure that returns a value after execution
e.g.
Create Procedure try @output nvarchar(50) output as .... return
how am i able to get the output value from the stored procedure using
DTS, I
do it in Execute SQL Task or ???
2. How am i able to fire a stored procedure using Active X Script

Thanks
Ed



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.