Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BCP syntax

Status
Not open for further replies.

micang

Technical User
Aug 9, 2006
626
US
SQL 2000

Hi All,

I have tried to look on books online, but for the life of me I can't figure out BCP.

Could someone possibly show me a sample of code to export\import using BCP?

Let's say I wanted to import a txt file having:

"RED","1","May"
"Green",2","Jan"
etc
etc

into a table in SQL with headings:

Colour,ID_No,Month

And for export, would the code be pretty similar?

Any guidance to get me on the right path will be greatly appreciated.

Michael

 
look up bulk importing in BOL

- Paul
10qkyfp.gif

- If at first you don't succeed, find out if the loser gets anything.
 
Thanks Paul
Will crack on..

Michael
 
Thanks nomadicalloy, much appreciated.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top