dbTalk Databases Forums  

import to excel with DTS

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


Discuss import to excel with DTS in the microsoft.public.sqlserver.dts forum.



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

Default import to excel with DTS - 09-24-2004 , 10:52 AM






I know I have touched on this before, is it possible to
import records using DTS from the sequel server that will
bring the table into excel and when we run this each night
it will replace the old spreadsheet with the new one. I
cannot seem to make it replace a spreadsheet and this is
what I want it to do.

Thanks again.

Reply With Quote
  #2  
Old   
Peter A. Schott
 
Posts: n/a

Default Re: import to excel with DTS - 09-24-2004 , 11:17 AM






Two (maybe three) options the way I see it:

1. Output as a CSV file named .xls - this will open Excel automatically, put
everything into columns, and easily overwrite any existing files. No
formatting and such, but it works for basic data needs.

2. Issue a DELETE statement against the Excel connection to delete all rows.
Then insert them back in. Alternatively, issue DROP and CREATE TABLE
commands against the Excel connection. This will delete and re-create the
table.

3. Look into SQL Reporting Services - you can set up a schedule to pull this
data (if it can be queried easily) and one of the formats is Excel. Also
allows you to e-mail it if desired.

-=Pete

"PaM" <pcoleman (AT) police (DOT) nashville.org> wrote:

Quote:
I know I have touched on this before, is it possible to
import records using DTS from the sequel server that will
bring the table into excel and when we run this each night
it will replace the old spreadsheet with the new one. I
cannot seem to make it replace a spreadsheet and this is
what I want it to do.

Thanks again.


Reply With Quote
  #3  
Old   
Mike Anderson
 
Posts: n/a

Default Re: import to excel with DTS - 09-24-2004 , 01:28 PM



Also you could:
1) Create and call a .bat file
2) Use strong data migration tool instead (Data Junction).

Quote:
-----Original Message-----
Two (maybe three) options the way I see it:

1. Output as a CSV file named .xls - this will open
Excel automatically, put
everything into columns, and easily overwrite any
existing files. No
formatting and such, but it works for basic data needs.

2. Issue a DELETE statement against the Excel connection
to delete all rows.
Then insert them back in. Alternatively, issue DROP
and CREATE TABLE
commands against the Excel connection. This will delete
and re-create the
table.

3. Look into SQL Reporting Services - you can set up a
schedule to pull this
data (if it can be queried easily) and one of the
formats is Excel. Also
allows you to e-mail it if desired.

-=Pete

"PaM" <pcoleman (AT) police (DOT) nashville.org> wrote:

I know I have touched on this before, is it possible
to
import records using DTS from the sequel server that
will
bring the table into excel and when we run this each
night
it will replace the old spreadsheet with the new one.
I
cannot seem to make it replace a spreadsheet and this
is
what I want it to do.

Thanks again.

.


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.