Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 a static and local variable?

1134


What is a functional dependency f said to be minimal?

1160


Is there any rownum object from which we can do this?

985


Explain the definition of normalized and denormalized view and what are the differences between them?

970


What are the advantages and disadvantages of using stored procedures versus calling sql inline in cold fusion?

1242


Which component has onread method and what it is used for?

1029


What are the various file formats involved in reportnet?

1026


Where the applications and where

964


Can decision tree be implemented using SQL?

2168


What are universe requirements?

1113


What is freehand sql?

1096


What is the metadata extension?

1065


How can you clear the cache?

1056


what are the others of "bad files" and "discard files" when using sql*loader?

2177


How can we acheive correlated sub-query in designer?can anyone help me in this regard?

996