dbTalk Databases Forums  

Unable to execute DTS package if Excel File exists.

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


Discuss Unable to execute DTS package if Excel File exists. in the microsoft.public.sqlserver.dts forum.



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

Default Unable to execute DTS package if Excel File exists. - 12-01-2003 , 02:51 PM






Does anyone know how to properly export data to an Excel spreadsheet. I have created a DTS package that correcly exports to an Excel file UNLESS the filename already exists. It then stops on me if the file exists. I delete the file and the DTS runs correctly

Any help would be much appreciated

Thank you
Terri Krin


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

Default Re: Unable to execute DTS package if Excel File exists. - 12-01-2003 , 03:01 PM






And what does the package look like ?
How many tasks do you have?
What is in those tasks?
How did you create the task ?

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Terri Kring" <TKring (AT) ololrmc (DOT) com> wrote

Quote:
Does anyone know how to properly export data to an Excel spreadsheet. I
have created a DTS package that correcly exports to an Excel file UNLESS the
filename already exists. It then stops on me if the file exists. I delete
the file and the DTS runs correctly.
Quote:
Any help would be much appreciated.

Thank you,
Terri Kring




Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Unable to execute DTS package if Excel File exists. - 12-01-2003 , 04:05 PM



In article <D36F7267-7346-4904-B308-4B9990D33476 (AT) microsoft (DOT) com>, Terri
Kring <TKring (AT) ololrmc (DOT) com> writes
Quote:
Does anyone know how to properly export data to an Excel spreadsheet. I
have created a DTS package that correcly exports to an Excel file
UNLESS the filename already exists. It then stops on me if the file
exists. I delete the file and the DTS runs correctly.

Any help would be much appreciated.

Thank you,
Terri Kring
What is the full error? What step/task raises the error?


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #4  
Old   
Rand Boyd [MS]
 
Posts: n/a

Default RE: Unable to execute DTS package if Excel File exists. - 12-02-2003 , 10:25 AM



I am assuming that you created the DTS package using the DTS Designer.

If this is the case, you can recreate your package using the DTS Export
Wizard there is an option to delete the destination table. You get to this
by clicking the elipse on the Select Source Tables and Views dialog box.

Rand
This posting is provided "as is" with no warranties and confers no rights.


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.