dbTalk Databases Forums  

Excel-Output

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


Discuss Excel-Output in the microsoft.public.sqlserver.dts forum.



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

Default Excel-Output - 12-09-2003 , 01:46 PM







I want to copy a table out to an Excel file at the end of every month. The
Excel filename needs to be unique each month like:

Dec03.xls
Jan04.xls

and so on....

any easy way to do this with a Pump Task ?



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

Default Re: Excel-Output - 12-09-2003 , 01:59 PM






I personally would have

an ExecuteSQL task that does a CREATE TABLE statement against the Excel
Connection. You then set the DestinationObjectName to be the name of the
new "Table" in the spreadsheet. You build up the SQL Statement and the
assignment of the Destination using a variation on this article

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

--

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


"HartA" <Hoosbruin (AT) Kconline (DOT) com> wrote

Quote:
I want to copy a table out to an Excel file at the end of every month.
The
Excel filename needs to be unique each month like:

Dec03.xls
Jan04.xls

and so on....

any easy way to do this with a Pump Task ?





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.