SQLServer使用BCP导入导出数据
2012-07-14 15:22
351 查看
命令行下:
bcp pubs.dbo.table1 in "d:\\t1.dat" -S . -U "sa" -P "123" -n
bcp pubs.dbo.table1 out "d:\\t1.dat" -S . -U "sa" -P "123" -n
或调用SQL过程
exec master..xp_cmdshell 'bcp pubs.dbo.table1 in "d:\\t1.dat" -S . -U "sa" -P "123" -n'
exec master..xp_cmdshell 'bcp pubs.dbo.table1 out "d:\\t1.dat" -S . -U "sa" -P "123" -n'
msdn:http://msdn.microsoft.com/zh-cn/library/ms162802.aspx
bcp pubs.dbo.table1 in "d:\\t1.dat" -S . -U "sa" -P "123" -n
bcp pubs.dbo.table1 out "d:\\t1.dat" -S . -U "sa" -P "123" -n
或调用SQL过程
exec master..xp_cmdshell 'bcp pubs.dbo.table1 in "d:\\t1.dat" -S . -U "sa" -P "123" -n'
exec master..xp_cmdshell 'bcp pubs.dbo.table1 out "d:\\t1.dat" -S . -U "sa" -P "123" -n'
msdn:http://msdn.microsoft.com/zh-cn/library/ms162802.aspx
相关文章推荐
- SqlServer 数据的导入导出,使用bcp命令
- BCP 大容量数据导入导出工具使用步骤
- SQL Server -- 数据导入导出BCP工具使用详解
- sql server 使用bcp 导入导出数据
- SQL Server数据导入导出工具BCP使用详解
- SQL2000中BCP轻松使用导入导出数据
- 使用T-SQL实现数据导出/导入(SQLSERVER—>SQLSERVER)
- 使用T-SQL实现数据导出/导入(SQLSERVER—>SQLSERVER)
- 使用T-SQL实现数据导出\导入(SQLSERVER—>SQLSERVER)
- sql 使用bcp进行导入导出数据
- sqlserver bcp(数据导入导出工具)一般用法与命令详解
- SQL server 数据导入导出BCP工具使用详解
- 使用bcp进行数据导出导入
- sqlserver bcp(数据导入导出工具)一般用法与命令详解
- SQL server 数据导入导出BCP工具使用详解
- SQL使用bcp方式导入,导出数据2
- 使用BCP导出导入数据
- SQL server 数据导入导出BCP工具使用详解
- BCP 大容量数据导入导出工具使用步骤
- Sql Server 使用bcp进行数据导出导入 .