command line tool for export data from server to server -
in sqlserver management studio, if click on data database there menu task > export data. me export database server.
however, need run wizard complete task , need specify source , destination sever information every time want use it.
i think convenient if use command line same task , write batch file automate it.
please me give suggestion or introduce me command line program can task since googled search not found useful information.
thank much.
u can use bcp utility
bcp out bcp server.schema.tablename out c:\tablename.txt -c -t -t –sservername -uusername -password bcp in bcp server.schema.tablename in c:\tablename.txt -c -t -t –sservername -uusername -password the 1st statement export data csv file , bcp in used import data csv file destination table
here -t stands trusted connection , -t represents field delimeter
you can write these bcp commands in batch file
or can create simple ssis package exporting data
Comments
Post a Comment