use dbname     选中将要导出数据的数据库 
go 
select 'bcp dbname..' + name + ' out c:\temp\' + name + '  -Usa -P -Ssybcdsrv -c' from sysobjects where type = 'U'   在sysobjects系统表中type为U的表为用户表,系统表为S。 
go