sql bcp 笔记

时间:2023-03-08 22:02:14

介绍:

http://blog.****.net/soudog/article/details/4343415

导出格式

BCP NTS.dbo.T_User format nul -f c:/User_format2.fmt -x -c -T --把表结构信息导出XML中

导入数据时,使用格式定义

BCP NTS.dbo.T_User in c:/User1.txt -F 10 -L 13 -c -x -f c:/User_format2.fmt -T --使用XML格式的格式文件