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?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |