dbTalk Databases Forums  

Execute a DTS from Excel

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


Discuss Execute a DTS from Excel in the microsoft.public.sqlserver.dts forum.



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

Default Execute a DTS from Excel - 04-13-2005 , 10:16 AM






We created a DTS package that imports data from an Excel
file to a Temporary table and then does an Update to the
primary databse table. The DTS works properly when
executed from
the Enterprise Manager.
What we really want is to allow the End User to execute
the package from the Excel file when they have completed
their changes to the data within the spreadsheet. We got
as far as putting the execute DTS launch command within a
Command button on the Excel file. When it's clicked
nothing happens. We suspect that since the file is
opened that the DTS Package cannot do the import.

Is there a way that we can allow the end user to execute
the DTS when they want to?


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

Default Re: Execute a DTS from Excel - 04-13-2005 , 01:17 PM






Sure you can do this

I am presuming you have registered the DTS dlls ala

Redistributing DTS with your program
(http://www.sqldts.com/default.aspx?225)


You then need to call your package with something very similar to

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/default.aspx?208)


Have the package "Fail on First Error"

OR

Have the package log when called the problems it has.

Allan

"Jazz" <jim.abel (AT) lmco (DOT) com> wrote


Quote:
We created a DTS package that imports data from an Excel
file to a Temporary table and then does an Update to the
primary databse table. The DTS works properly when
executed from
the Enterprise Manager.
What we really want is to allow the End User to execute
the package from the Excel file when they have completed
their changes to the data within the spreadsheet. We got
as far as putting the execute DTS launch command within a
Command button on the Excel file. When it's clicked
nothing happens. We suspect that since the file is
opened that the DTS Package cannot do the import.

Is there a way that we can allow the end user to execute
the DTS when they want to?


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.