摘要: SQL SERVER 数据库导入,导出之Bcp命令示例利用sql查询分析器中语句导入导出,bcp命令可直接在dos上运行,但须知必须语句必须写在一排上,不然语句执行不起会报错xp_cmdshell 是系统存储过程1. 数据库xiantest 表t_P_building ,数据库账户sa 导出到C盘中user.txt文件中EXEC master..xp_cmdshell 'BCP xiantest..t_P_building out c:\User.txt -c -U"sa" -P"***"' –使用密码链接EXEC master..xp_ 阅读全文
posted @ 2012-04-01 17:03 lesily 阅读(538) 评论(0) 推荐(1) 编辑