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

Explain bus schema?

0 Answers  


What is a cube in data warehousing concept?

0 Answers  


What is MODEL is Data mining world?

0 Answers   Bank Of America,


What is the difference between olap and oltp?

0 Answers  


What is the difference between constraind base load ordering and target load plan?

0 Answers  


Do you view contain data?

0 Answers  


Which columns go to the fact table and which columns go the dimension table?

0 Answers  


State any 5 of Cods guidelines of an OLAP system, brief description each?

1 Answers  


Explain the differences between normalizer and normalizer transformation?

0 Answers  


Is there any default username & pwd for bo designer & supervisor?

0 Answers  


4.Explain Snowflkeschema ?

6 Answers   EDS, HCL, IBM, iFlex, TCS,


What are the advantages of cold fusion?

0 Answers  


Categories