dbTalk Databases Forums  

Export to text

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


Discuss Export to text in the microsoft.public.sqlserver.dts forum.



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

Default Export to text - 06-07-2005 , 01:33 PM






Can I export a query to text file?

I can't figure out how to make the destination. The data pump errors
because there is no transformation and there is no transformation
because the text file "connection" has no fields. Can you write a new
file or only append to an existing?

An odd lack of functionality!

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

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

Default Re: Export to text - 06-07-2005 , 04:00 PM






You can certainly export a query to text file. You must make sure that your
columns all have names though so

MAX(column Name) would not work but
MAX(column Name) as ColumnAlias would



--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"M D" <mardukes (AT) aol (DOT) com> wrote

Quote:
Can I export a query to text file?

I can't figure out how to make the destination. The data pump errors
because there is no transformation and there is no transformation
because the text file "connection" has no fields. Can you write a new
file or only append to an existing?

An odd lack of functionality!

thx
md

*** Sent via Developersdex http://www.developersdex.com ***



Reply With Quote
  #3  
Old   
M D
 
Posts: n/a

Default Re: Export to text - 06-08-2005 , 02:35 PM



I managed to build one by hand, assembling a text-file-destination
connection, an oledb connection and a copy data task. It established
the file definition. The export data wizard, however, did not do the
job for the text file connection.

I guess I'm the first person to ever try it.

thx
md

*** Sent via Developersdex http://www.developersdex.com ***

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.