首页 > 代码库 > MSSQL 导入导出文本文件

MSSQL 导入导出文本文件

EXEC master..xp_cmdshell ‘bcp FH2_SJH.dbo.dCurrent in c:\tt.txt -c -t -S"SMARTSENCER\SQL2008" -U"sa" -P"password"‘

EXEC master..xp_cmdshell ‘bcp FH2_SJH.dbo.band out c:\band.txt -c  -t -S"SMARTSENCER\SQL2008" -U"sa" -P"passwor"‘