dbTalk Databases Forums  

DTS Export by Query to Excel dyn file or sheetname?

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


Discuss DTS Export by Query to Excel dyn file or sheetname? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JDP@Work
 
Posts: n/a

Default DTS Export by Query to Excel dyn file or sheetname? - 01-26-2004 , 07:47 PM






Production: SQL 7.0 sp4
Dev: SQL 2000 sp?

I want either my named range a.k.a. table or my entire file name to be dynamic
via UI prompt.

How can I get either from the global vars?

I'm sure there must be an asp for this, but I'm too tired to sift through all
the material, I'd rather find a good one for the exact task, that will work in
7.0.

TIA

JeffP....



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

Default Re: DTS Export by Query to Excel dyn file or sheetname? - 01-27-2004 , 02:07 PM






In message <uz30eeH5DHA.2348 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, "JDP@Work"
<JPGMTNoSpam (AT) sbcglobal (DOT) net> writes
Quote:
Production: SQL 7.0 sp4
Dev: SQL 2000 sp?

I want either my named range a.k.a. table or my entire file name to be dynamic
via UI prompt.

How can I get either from the global vars?

I'm sure there must be an asp for this, but I'm too tired to sift through all
the material, I'd rather find a good one for the exact task, that will work in
7.0.

TIA

JeffP....

The named range or sheet is equivalent to the table name, so to change
this you need to change the SourceObjectName property of the DataPump
task.

Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)
--
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
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Export by Query to Excel dyn file or sheetname? - 01-28-2004 , 01:17 AM



Just to follow up as well.

You can create new named ranges in Excel by issuing a CREATE TABLE statement
against the Excel connection
and then this article comes in useful.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/Default.aspx?205)


--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
In message <uz30eeH5DHA.2348 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, "JDP@Work"
JPGMTNoSpam (AT) sbcglobal (DOT) net> writes
Production: SQL 7.0 sp4
Dev: SQL 2000 sp?

I want either my named range a.k.a. table or my entire file name to be
dynamic
via UI prompt.

How can I get either from the global vars?

I'm sure there must be an asp for this, but I'm too tired to sift through
all
the material, I'd rather find a good one for the exact task, that will
work in
7.0.

TIA

JeffP....


The named range or sheet is equivalent to the table name, so to change
this you need to change the SourceObjectName property of the DataPump
task.

Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)
--
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
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.