dbTalk Databases Forums  

Active X and stored procedures

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


Discuss Active X and stored procedures in the microsoft.public.sqlserver.dts forum.



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

Default Active X and stored procedures - 09-14-2005 , 12:02 AM






Hello, I want to write the results of a stored procedure to a text file in
active x task in dts. I have the code to write the text file but what I need
is an example of executing a stored procedure with a parameter and the
results writing to a text file.
The parameterin question comes from the package globa variable.

Thanks in advance for your help.

Gary

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Active X and stored procedures - 09-14-2005 , 12:24 AM






Why do you need to do this in an Active Script task?

A stored proc + param can act as the source to a datapump task.

You could try this article

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/default.aspx?234)


Allan




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


Quote:
Hello, I want to write the results of a stored procedure to a text file
in
active x task in dts. I have the code to write the text file but what I
need
is an example of executing a stored procedure with a parameter and the
results writing to a text file.
The parameterin question comes from the package globa variable.

Thanks in advance for your help.

Gary


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

Default Re: Active X and stored procedures - 09-14-2005 , 12:35 AM




I appreciate your reply but the website and page you posted do not address
my question.


"Allan Mitchell" wrote:

Quote:
Why do you need to do this in an Active Script task?

A stored proc + param can act as the source to a datapump task.

You could try this article

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/default.aspx?234)


Allan




"Gary" <Gary (AT) discussions (DOT) microsoft.com> wrote in message
news18D9B58-4148-419C-A77B-FF2FAC1A551E (AT) microsoft (DOT) com:

Hello, I want to write the results of a stored procedure to a text file
in
active x task in dts. I have the code to write the text file but what I
need
is an example of executing a stored procedure with a parameter and the
results writing to a text file.
The parameterin question comes from the package globa variable.

Thanks in advance for your help.

Gary



Reply With Quote
  #4  
Old   
David J. Cartwright
 
Posts: n/a

Default Re: Active X and stored procedures - 09-14-2005 , 07:31 AM



If you must use ActiveX, you can use SQLDMO To Connect to Server and Execute
a Command with results then use FSO to write to file
http://msdn.microsoft.com/library/de..._m_e2_8jz8.asp

Is this close to what you need ?

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

Quote:
Hello, I want to write the results of a stored procedure to a text file in
active x task in dts. I have the code to write the text file but what I
need
is an example of executing a stored procedure with a parameter and the
results writing to a text file.
The parameterin question comes from the package globa variable.

Thanks in advance for your help.

Gary



Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Active X and stored procedures - 09-14-2005 , 01:28 PM



Then what does your stored proc return?
Why must you use an Active Script task?
Why is a datapump task with the stored proc as the source not
appropriate?

Allan




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


Quote:
I appreciate your reply but the website and page you posted do not
address
my question.


"Allan Mitchell" wrote:


Why do you need to do this in an Active Script task?

A stored proc + param can act as the source to a datapump task.

You could try this article

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/default.aspx?234)


Allan




"Gary" <Gary (AT) discussions (DOT) microsoft.com> wrote in message
news18D9B58-4148-419C-A77B-FF2FAC1A551E (AT) microsoft (DOT) com:


Hello, I want to write the results of a stored procedure to a text
file
in
active x task in dts. I have the code to write the text file but
what I
need
is an example of executing a stored procedure with a parameter and
the
results writing to a text file.
The parameterin question comes from the package globa variable.

Thanks in advance for your help.

Gary





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.