dbTalk Databases Forums  

EXport from EXce using DTS

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


Discuss EXport from EXce using DTS in the microsoft.public.sqlserver.dts forum.



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

Default EXport from EXce using DTS - 04-28-2005 , 03:35 PM






I'm trying to save a excel file to tab delimited format using a dts script.

However I can open the sheet I can save the sheet as a different name,
but I don't seem to be able to save it as a tab delimited file

Can any one help ?

Thanks in advance

Andrew

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

Default Re: EXport from EXce using DTS - 04-30-2005 , 01:25 AM






Are you after sending the data to a tab delimited file or saving the actual sheet?

ActiveWorkbook.SaveAs Filename:= _
"C:\New Microsoft Excel Worksheet.txt" _
, FileFormat:=xlText, CreateBackup:=False

The problem with the second option is that you will require the Excel dlls on the location from which you execute. If this is to be
scheduled then MS do not recommend running office automation unattended like this



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Info" <info (AT) schnof (DOT) co.uk> wrote

Quote:
I'm trying to save a excel file to tab delimited format using a dts script.

However I can open the sheet I can save the sheet as a different name, but I don't seem to be able to save it as a tab delimited
file

Can any one help ?

Thanks in advance

Andrew



Reply With Quote
  #3  
Old   
Schnof
 
Posts: n/a

Default Re: EXport from EXce using DTS - 04-30-2005 , 02:02 AM



Trying save the default sheet to a tab delimited file.

But within a activex script , under the control of dts.

This for a project I'm building at work.

Andrew



Allan Mitchell wrote:
Quote:
Are you after sending the data to a tab delimited file or saving the actual sheet?

ActiveWorkbook.SaveAs Filename:= _
"C:\New Microsoft Excel Worksheet.txt" _
, FileFormat:=xlText, CreateBackup:=False

The problem with the second option is that you will require the Excel dlls on the location from which you execute. If this is to be
scheduled then MS do not recommend running office automation unattended like this




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.