use dbname 选中将要导出数据的数据库
go
在sysobjects系统表中type为U的表为用户表,系统表为S。
-P 密码
-S 数据库服务名称
-J 编码
select 'bcp dbname..' + name + ' out c:\temp\' + name + ' -Usa -Ppassword -SserviceName -c -Jcp936' from sysobjects where type = 'U'go
生成到处数据的bcp 语句,
use dbname 选中将要导出数据的数据库
go
在sysobjects系统表中type为U的表为用户表,系统表为S。
-P 密码
-S 数据库服务名称
-J 编码
select 'bcp dbname..' + name + ' out c:\temp\' + name + ' -Usa -Ppassword -SserviceName -c -Jcp936' from sysobjects where type = 'U'go
生成到处数据的bcp 语句,