SQL Server BCP 的数据导入导出 - Jason's WMI SQL Related Blog
Jason's WMI
·
2005-11-30
·
via 博客园 - Jason's WMI SQL Related Blog
| 2005-3-16 |
|
|
|
| SQL Server BCP 的数据导入导出 |
|
/** 导入文本文件 EXEC master..xp_cmdshell ’bcp "dbname..tablename" in c:\DT.txt -c -Sservername -Usa -Ppassword’
/** 导出文本文件 EXEC master..xp_cmdshell ’bcp "dbname..tablename" out c:\DT.txt -c -Sservername -Usa -Ppassword’ 或 EXEC master..xp_cmdshell ’bcp "Select * from dbname..tablename" queryout c:\DT.txt -c -Sservername -Usa -Ppassword’ |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。