dbTalk Databases Forums  

Pass on variables from SP's into DTS

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


Discuss Pass on variables from SP's into DTS in the microsoft.public.sqlserver.dts forum.



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

Default Pass on variables from SP's into DTS - 06-20-2005 , 08:27 AM






Is there a way I can pass on variables from a stored procedure to a
DTS-package. I prefer to run this DTS-package as a job because of policy's by
the customer.

Thanks in advance.

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

Default Re: Pass on variables from SP's into DTS - 06-20-2005 , 01:45 PM






Something like this?

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Chris Plenter" <ChrisPlenter (AT) discussions (DOT) microsoft.com> wrote

Quote:
Is there a way I can pass on variables from a stored procedure to a
DTS-package. I prefer to run this DTS-package as a job because of policy's
by
the customer.

Thanks in advance.



Reply With Quote
  #3  
Old   
Chris Plenter
 
Posts: n/a

Default Re: Pass on variables from SP's into DTS - 06-21-2005 , 02:04 AM



No, this is passing variables into stored procedures. I want to start a job
using the command 'MSDB.dbo.sp_start_job @jobname'. This job will run
a DTS-package. I want to set a global variable in this DTS passed trough by
T-SQL.
Best option I have now I think is just setting a value in the database by
T-SQL and read it out with DTS when configuring global variables.

But if you have any other suggestions I would appreciate if you let me know.

Best regards,

Chris

"Allan Mitchell" wrote:

Quote:
Something like this?

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Chris Plenter" <ChrisPlenter (AT) discussions (DOT) microsoft.com> wrote in message
news:CC000A98-1678-4C94-9C65-B16A88052566 (AT) microsoft (DOT) com...
Is there a way I can pass on variables from a stored procedure to a
DTS-package. I prefer to run this DTS-package as a job because of policy's
by
the customer.

Thanks in advance.




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

Default Re: Pass on variables from SP's into DTS - 06-21-2005 , 01:37 PM



Ok then your original post was interpreted as you want to use a stored proc
in your package and utilise Global Variables

You can use the sp_OA suite of commands
You can also use xp_cmdshell

Having your package read an external source using the Dynamic Properties
task is also a very good option.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Chris Plenter" <ChrisPlenter (AT) discussions (DOT) microsoft.com> wrote

Quote:
No, this is passing variables into stored procedures. I want to start a
job
using the command 'MSDB.dbo.sp_start_job @jobname'. This job will
run
a DTS-package. I want to set a global variable in this DTS passed trough
by
T-SQL.
Best option I have now I think is just setting a value in the database by
T-SQL and read it out with DTS when configuring global variables.

But if you have any other suggestions I would appreciate if you let me
know.

Best regards,

Chris

"Allan Mitchell" wrote:

Something like this?

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Chris Plenter" <ChrisPlenter (AT) discussions (DOT) microsoft.com> wrote in message
news:CC000A98-1678-4C94-9C65-B16A88052566 (AT) microsoft (DOT) com...
Is there a way I can pass on variables from a stored procedure to a
DTS-package. I prefer to run this DTS-package as a job because of
policy's
by
the customer.

Thanks in advance.






Reply With Quote
  #5  
Old   
Ed Enstrom
 
Posts: n/a

Default Re: Pass on variables from SP's into DTS - 06-21-2005 , 10:06 PM



Chris Plenter wrote:
Quote:
Is there a way I can pass on variables from a stored procedure to a
DTS-package. I prefer to run this DTS-package as a job because of policy's by
the customer.

Thanks in advance.
look here:

"you can capture stored procedure return values and output parameters into
global variables using the Output Parameter functionality of the Execute SQL
Task in SQL Server 2000."

http://www.sqldts.com/default.aspx?234



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.