How can we import and export using BCP utility?

Answer Posted / kishore

Import to test file:-
--------------------
bcp "SELECT ProcContent FROM <DBName>.dbo.NewProc order by
ID" queryout C:\NewProc.sql -c -S <ServerName> -T

If we can run(dos prompt) above statement in set of records
are store into c:\newproc.sql file.

Export from File:-
-----------------
BULK INSERT myTestCharData FROM 'C:\myTestCharData-c.Dat'
WITH ( DATAFILETYPE='char', FIELDTERMINATOR=',');

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of dimensional modeling?

806


What are parallel querys and query hints?

1967


How do you setup Lo-cockpit?

2807


Explain what are the different types of join operations?

727


What is a core dimension?

806


Explain clearly how to explain any (sales) project in interview. Actually feom where report developer work starts?pls reply as soon as possible?

726


Explain Association algorithm in Data mining?

2057


Explain why fact table is in normal form?

710


Explain what is the difference between stop and abort?

750


What is analytical or analytic mean?

847


What is load manager?

746


Explain what are the different types of data warehousing?

710


Explain differences between star and snowflake schemas?

764


What are the types of partitioning?

777


Why should you put your data warehouse on a different system than your oltp system?

675