dbTalk Databases Forums  

Export a database table to a .csv file

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


Discuss Export a database table to a .csv file in the microsoft.public.sqlserver.dts forum.



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

Default Export a database table to a .csv file - 08-15-2005 , 02:30 PM






Hello all,

I am trying to export the contents of a table in a database to a .csv file.
At this point I wish to export the entire table. Using the DTS wizard I was
able to find an option for a flat file. This was not sufficient for our
development group however as they require a .csv file. Can anyone here tell
me if this is possible and how to do this?

Thank you very much,
John


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

Default Re: Export a database table to a .csv file - 08-15-2005 , 02:59 PM






what i
"John Lloyd" <JohnLloyd (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello all,

I am trying to export the contents of a table in a database to a .csv
file.
At this point I wish to export the entire table. Using the DTS wizard I
was
able to find an option for a flat file. This was not sufficient for our
development group however as they require a .csv file. Can anyone here
tell
me if this is possible and how to do this?

Thank you very much,
John




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

Default Re: Export a database table to a .csv file - 08-15-2005 , 03:06 PM



I must learn to finish sentences

a csv file can be thought of as nothing more than a comma seperated text
file.

When you use the destination adapter for a flat file you can tell it to add
the .csv extension and you can dictate the column terminator be a comma.

For what more could they ask?

Allan




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
what i
"John Lloyd" <JohnLloyd (AT) discussions (DOT) microsoft.com> wrote in message
news:4CF882BC-1A70-4607-A3E2-70687B07B6DC (AT) microsoft (DOT) com...
Hello all,

I am trying to export the contents of a table in a database to a .csv
file.
At this point I wish to export the entire table. Using the DTS wizard I
was
able to find an option for a flat file. This was not sufficient for our
development group however as they require a .csv file. Can anyone here
tell
me if this is possible and how to do this?

Thank you very much,
John






Reply With Quote
  #4  
Old   
John Lloyd
 
Posts: n/a

Default Re: Export a database table to a .csv file - 08-15-2005 , 03:16 PM



Wow thank you very much - I have a thick skull sometimes. That completely
solved my problem

Have a great day!

John


"Allan Mitchell" wrote:

Quote:
I must learn to finish sentences

a csv file can be thought of as nothing more than a comma seperated text
file.

When you use the destination adapter for a flat file you can tell it to add
the .csv extension and you can dictate the column terminator be a comma.

For what more could they ask?

Allan




"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OXt5lOdoFHA.2156 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
what i
"John Lloyd" <JohnLloyd (AT) discussions (DOT) microsoft.com> wrote in message
news:4CF882BC-1A70-4607-A3E2-70687B07B6DC (AT) microsoft (DOT) com...
Hello all,

I am trying to export the contents of a table in a database to a .csv
file.
At this point I wish to export the entire table. Using the DTS wizard I
was
able to find an option for a flat file. This was not sufficient for our
development group however as they require a .csv file. Can anyone here
tell
me if this is possible and how to do this?

Thank you very much,
John







Reply With Quote
  #5  
Old   
ninel gorbunov via SQLMonster.com
 
Posts: n/a

Default Re: Export a database table to a .csv file - 08-19-2005 , 11:30 AM



This is something I might be interested in. How do I accomplish this?
Is this being done within a dts package or from an external application?

Allan Mitchell wrote:
Quote:
I must learn to finish sentences

a csv file can be thought of as nothing more than a comma seperated text
file.

When you use the destination adapter for a flat file you can tell it to add
the .csv extension and you can dictate the column terminator be a comma.

For what more could they ask?

Allan

what i
Hello all,
[quoted text clipped - 10 lines]
Thank you very much,
John

--
Message posted via http://www.sqlmonster.com


Reply With Quote
  #6  
Old   
Thomas
 
Posts: n/a

Default RE: Export a database table to a .csv file - 04-01-2007 , 02:42 PM



Try www.sqlscripter.com to export data to text/csv.
It's free.


"John Lloyd" wrote:

Quote:
Hello all,

I am trying to export the contents of a table in a database to a .csv file.
At this point I wish to export the entire table. Using the DTS wizard I was
able to find an option for a flat file. This was not sufficient for our
development group however as they require a .csv file. Can anyone here tell
me if this is possible and how to do this?

Thank you very much,
John


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.