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

Explain grouped cross tab?

2193


What is bi?

565


What are the advantages of cold fusion?

528


Explain what is what are semi-additive and factless facts and in which scenario will you use such kinds of fact tables?

515


Explain where do we use semi and non additive facts?

562






I have two universes created by two difference database can we join them in designer & report level? How

530


Explain the difference between view and materialized view?

507


What are the key features of chameleon that separates it from other algorithms?

670


Explain piconet?

547


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

562


Explain normalization?

560


Tell me what is degree of a relation?

518


Name a few sectors which use data warehousing?

521


What is your spectra photometer working principles?

557


What is the difference between power center & power mart?

501