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 can report net connect multiple datasource at a time in report creation time?

0 Answers  


Ist the schema that a data warehouse system can implements.

0 Answers  


What is drill-through?

0 Answers  


What is an error log table in informatica occurs and how to maintain it in mapping?

0 Answers  


What is a junk dimension? What is the difference between junk dimension and degenerated dimension?

0 Answers  






Explain why dimenstion tables are denormalized in nature?

0 Answers  


How to design file watch jobs?

0 Answers  


How to use the tool Ontobulider

1 Answers  


How many project sources we can create in metadata?

0 Answers  


Explain er diagram?

0 Answers  


What are cluster analysis in data warehousing?

0 Answers  


Explain the main differences between star and snowflake schema?

0 Answers  


Categories