Question

  Asked: Jan 9 2008   5:11 PM GMT
  Asked by: Gdckboyer


DTS error after deleting xls file with script


SQL, DTS, XLS, ActiveX

All,
After I have deleted a xls file using an ActiveX script the DTS Package fails because the file is not there. I then have to go into the properties of the task and go to the destination tab and click the create button. The I have go to the Transformation tab and then run the package for it to complete. How can I get this to complete without having to go into the DTS package and then maunally intervene?
Thanks,
Gabriel Boyer

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



The easist way is to store a blank template of the excel sheet. Then before you try to export data to it, copy the template into place then use it as normal, then delete it when you are done with it (or the next day when the package starts up again).
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development, SQL Server and Microsoft Windows.

Looking for relevant Development Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Mrdenny  |   Jan 10 2008  2:34AM GMT

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.