SQL Server コマンド sqlcmd / bcp | 備忘録 (。・_・。)ノ
sqlcmd
sqlcmd -E -S localhost\SQLExpress -d test

1> select * from Groups
2> go
GroupCode  GroupName
---------- ----------
A          チームA
K          チームK
B          チームB

(3 行処理されました)

---------------------------------------------------------------------------------------
bcp
bcp "select * from test.dbo.Groups" queryout "dump.txt" -c -t, -S localhost\SQLExpress -T

コピーを開始しています...

3 行コピーされました。
ネットワーク パケット サイズ (バイト): 4096
クロック タイム (ミリ秒) 合計     : 1      平均 : (3000.00 行/秒)

bcp ユーティリティ