摘要: 1、导出数据(1)、在Sql Server Management Studio中:--导出数据到tset1.txt,并指定本地数据库的用户名和密码--这里需要指定数据库完全限定名。--username 数据登录名--password 数据库密码EXEC master..xp_cmdshell 'BCP "SELECT * FROM Testdb.dbo.TestVoucher" queryout d:\tset1.txt -c -U"username" -P"password"'注:SQL Server阻止了对组件xp 阅读全文
posted @ 2013-07-19 00:15 lhfly 阅读(2163) 评论(2) 推荐(0) 编辑