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
 General SQL Server Forums
 New to SQL Server Programming
 BCP cmd Question

Author  Topic 

ann06
Posting Yak Master

171 Posts

Posted - 2008-10-28 : 05:30:32
Hi,
does BCP utility only copies the whole data from the table or is there a way to copy selected data i.e to ship only incremental update and if there is how is the way to do so?
Thanks in advance

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-10-28 : 05:31:33
Yes. You can export parts of table. Use the QUERYOUT option.
See Books Online for various setting for BCP command.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-10-28 : 05:32:26
You can see the BCP command here that uses some options to output the data I want.
http://weblogs.sqlteam.com/peterl/archive/2008/10/24/How-to-script-out-all-your-objects-one-per-file.aspx



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-28 : 05:50:07
another example here

http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/bcp-export-data-to-text-file.aspx
Go to Top of Page
   

- Advertisement -