IT Community - Software Programming, Web Development and Technical Support

How can we import and export using BCP utility in SQL?

This is a discussion on How can we import and export using BCP utility in SQL? within the Database Support forums, part of the Web Development category; How can we import and export using BCP utility in SQL?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-26-2007, 04:19 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Question How can we import and export using BCP utility in SQL?

How can we import and export using BCP utility in SQL?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 04:33 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: How can we import and export using BCP utility in SQL?

In the first question you can see there is huge list of different command. We will try to
cover only the basic commands which are used.
-T: - signifies that we are using windows authentification
-t: - By default every record is tab separated. But if you want to specify comma separated
you can use this command.
-r :- This specifies how every row is separated. For instance specifying –r/n specifies that
every record will be separated by ENTER.
bcp adventureworks.sales.salesperson out c:\salesperson.txt -T
bcp adventureworks.sales.salespersondummy in c:\salesperson.txt –T
When you execute the BCP syntax you will be prompted to enter the following values
(data type, length of the field and the separator) as shown in figure below. You can either
fill it or just press enter to escape it. BCP will take in the default values.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
export to word file using PHP? senraj PHP Programming 1 08-18-2007 04:47 AM
How do we import or export data in MySql Jeyaseelansarc Database Support 8 08-17-2007 07:25 AM
What is BCP utility in SQL SERVER ? sundarraja Database Support 2 08-10-2007 12:42 AM
Any idea about RRAS utility in Windows Server 2003 traces network problems kingmaker Server Management 1 07-26-2007 01:17 AM
The AddrView utility extracts all URLs from Web pages.. why? kingmaker Operating Systems 1 07-26-2007 01:07 AM


All times are GMT -7. The time now is 05:47 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0