How can we import and export using BCP utility?



How can we import and export using BCP utility?..

Answer / 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

More Data Warehouse General Interview Questions

Fact table is in normalized or de-normalized form?

0 Answers  


What is the difference between metadata and data dictionary?

0 Answers  


For faster process, what we will do with the universe?

0 Answers  


What is the purpose of Dataware Control?

0 Answers   CGI,


What is difference between model & package?

0 Answers  






What is called dimensional modelling?

0 Answers  


What is real-time datawarehousing?

0 Answers  


Tell me what is full load & incremental or refresh load?

0 Answers  


Can we have multiple application.cfm file in an application?

0 Answers  


Briefly state different between data ware house & data mart?

0 Answers  


What are the different types of segments?

0 Answers  


Explain difference between snow flake and star schema. What are situations where snow flake schema is better than star schema to use and when the opposite is true?

0 Answers  


Categories