Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Execute SSIS Package

 
   Database Forums (Home) -> DTS RSS
Next:  problem with OPEN QUERY  
Author Message
Ravi Persaud

External


Since: Nov 21, 2005
Posts: 5



(Msg. 1) Posted: Mon Nov 21, 2005 3:41 am
Post subject: Execute SSIS Package
Archived from groups: microsoft>public>sqlserver>dts (more info?)

I re-created my DTS package in SQL Server 2005. I now execute the package
using: [ Exec Master..xp_cmdshell 'DTExec /f C:\Data\packagename.dtsx' ]

It is working fine however, is there another way of executing this package
in SQL Server 2005 without having to go to xp_cmdshell and run DTExec?

Okay, so the [ packagename.dtsx ] is external but let's say it was internal.
Is there a way to execute a package in one step instead of 2 as above?

 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Imran5

External


Since: Sep 04, 2004
Posts: 2



(Msg. 2) Posted: Mon Nov 21, 2005 7:37 am
Post subject: RE: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

sorry dear i am helping you exactly but telling you what i do in these kind
of situations,
run sql profiler
now execute any thing either by right clicking or some other you knows then
see in profiler for its backend command, note it and use every where as t-sql

"Ravi Persaud" wrote:

> I re-created my DTS package in SQL Server 2005. I now execute the package
> using: [ Exec Master..xp_cmdshell 'DTExec /f C:\Data\packagename.dtsx' ]
>
> It is working fine however, is there another way of executing this package
> in SQL Server 2005 without having to go to xp_cmdshell and run DTExec?
>
> Okay, so the [ packagename.dtsx ] is external but let's say it was internal.
> Is there a way to execute a package in one step instead of 2 as above?

 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Ravi Persaud

External


Since: Nov 21, 2005
Posts: 5



(Msg. 3) Posted: Mon Nov 21, 2005 8:11 am
Post subject: Re: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you Darren,
I will have to play around with SQL Server 2005 since I am new to it. I will
schedule a job and try to execute it via T-Sql as you suggested. I will need
some time before I can update you on this.
 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Ravi Persaud

External


Since: Nov 21, 2005
Posts: 5



(Msg. 4) Posted: Mon Nov 21, 2005 8:15 am
Post subject: RE: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you Imran,
I don't even know how to use the SQL Profiler but I will try so I can find
an alternative solution. It I have any problems I will post again.
 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Ravi Persaud

External


Since: Nov 21, 2005
Posts: 5



(Msg. 5) Posted: Tue Nov 22, 2005 2:58 am
Post subject: RE: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Okay, I discovered what the SQL Profiler is all about. For execution of an
internal SSIS package I used:

[ Exec msdb.dbo.sp_dts_getpackage
N'NewPkg','00000000-0000-0000-0000-000000000000' ] but for some reason this
does not work.

I created a job and used the profiler to check the t-sql syntax. This is
what I came up with:

[ EXEC msdb.dbo.sp_start_job @job_name=N'packagename' ] this works fine.

And my original t-sql statement:

[ Exec Master..xp_cmdshell 'dtexec /f c:\data\packagename.dtsx' ] works as
well.

So I am quite happy with the help I received on this site. It was my first
post and I can say it was a great experience.

Thanks again to Darren and Imran.
 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Ravi Persaud

External


Since: Nov 21, 2005
Posts: 5



(Msg. 6) Posted: Thu Jan 05, 2006 5:26 am
Post subject: RE: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you for stopping by Allan.
I wanted to execute an SSIS package at the click of a button from a web page.

I came across 3 ways of doing this, all from the click on a button. The
first was using DTExec, the second was by executing an unscheduled job and
the third was by using SqlServer.Dts.Runtime in Asp.Net 2.0.

I found that the last option was the fastest and speed is what I am looking
for.

What are your suggestions? I would really appreciate your insite.
Thank you for your intesest.
 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Allan Mitchell1

External


Since: Sep 27, 2003
Posts: 127



(Msg. 7) Posted: Thu Jan 05, 2006 12:47 pm
Post subject: RE: Execute SSIS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Ravi,

I would do it programmatically in that case as well. I would use the SSIS
object model to do the execution.

Allan

> Thank you for stopping by Allan.
> I wanted to execute an SSIS package at the click of a button from a
> web page.
> I came across 3 ways of doing this, all from the click on a button.
> The first was using DTExec, the second was by executing an unscheduled
> job and the third was by using SqlServer.Dts.Runtime in Asp.Net 2.0.
>
> I found that the last option was the fastest and speed is what I am
> looking for.
>
> What are your suggestions? I would really appreciate your insite.
> Thank you for your intesest.
>
 >> Stay informed about: Execute SSIS Package 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Execute an SSIS Package from a Stored Procedure - Can I call an SSIS Package from a Stored Procedure?

Execute a SSIS Package stored in SQL Server using Stored P.. - Hi, I have some SSIS Packages that gets data from different databases and loads it onto my SQL Server Database. Now my SQL Server is in another machine and my web pages are in different machines. So I cannot go about executing a file system ssis..

execute package of a number of execute package tasks - In a project I have created 6 dtsx packages, all doing about the same thing: sql task defines highest date in database and store in variable script task to create an oracle sql statement based on the above date dataflow task to 1.select from oracle...

SSIS: How to run tasks within a package outside of package.. - Hi, in SSIS I've created a package that transforms data using several steps. I want to log each step in my [Jobs] table, so I've added Execute SQL tasks between each step to update the [progress] column in that table. Here's the problem: The..

Execute DTS package in SP - How would I execute DTS package in the SP? Thank you.
   Database Forums (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]