Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 export data to textfile using bcp

Author  Topic 

Ile
Starting Member

4 Posts

Posted - 2002-09-04 : 05:33:19
Hi
I try to export a table to a textfile, but I don't want to export all columns. How do I have to specify the format file to skip these columns?
thanks


nr
SQLTeam MVY

12543 Posts

Posted - 2002-09-04 : 05:36:52
Easiest to bcp from a view then youavoid complications but you can also use the queryout option to specify a query or SP.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Ile
Starting Member

4 Posts

Posted - 2002-09-04 : 07:10:01
Thanks for the hint. I haven't used the queryout option so far. It works great

Go to Top of Page
   

- Advertisement -