dbTalk Databases Forums  

export to DTSFlatFile

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


Discuss export to DTSFlatFile in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sandrina (Offline)
Junior Member
 
Posts: 2
Join Date: Aug 2006

Default export to DTSFlatFile - 08-17-2006 , 08:15 AM






I'm building the dts from scratch... The goal is to build a dts to export some data (sql statement is a must) from one table to a text file. I've built a package, connections (two of them, one for the sql server, and one for the text file), steps (only one), one task with one custom task, and one transformation object (there is only one column in the select clause in sql statement). However, when I execute the package, I get the following error:

"Incomplete file format information - file cannot be opened."

ProviderID property for the text file is "DTSFlatFile", and I've assigned the DataSource property - an UNC path. My guess is that the transformation isn't done correctly, but I can't figure out what's wrong... help...

Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: export to DTSFlatFile - 08-20-2006 , 07:41 AM






You have not told DTS how to write the file. Double-click the file connection
and click Properties button. But even better, instead of building the dts
package from scratch like this, just use the DTS Import/Export wizard and
choose whether to export from a table or a SQL command. It will ask you for
the file format you want as part of the wizard. If you want to save the
package, you can do so as part of the wizard.

Charles Kangai, MCT, MCDBA




"Sandrina" wrote:

Quote:
I'm building the dts from scratch... The goal is to build a dts to
export some data (sql statement is a must) from one table to a text
file. I've built a package, connections (two of them, one for the sql
server, and one for the text file), steps (only one), one task with one
custom task, and one transformation object (there is only one column in
the select clause in sql statement). However, when I execute the
package, I get the following error:

"Incomplete file format information - file cannot be opened."

ProviderID property for the text file is "DTSFlatFile", and I've
assigned the DataSource property - an UNC path. My guess is that the
transformation isn't done correctly, but I can't figure out what's
wrong... help...


--
Sandrina




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.