Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.
AskSQLTeam Ask SQLTeam Question
0 Posts
X002548 Not Just a Number
15586 Posts
Declare @Path varchar(255), @Server varchar(255), @dbName varchar(255) Select @Path = 'd:\' , @Server = @@SERVERNAME , @dbName = db_name() Select 'EXEC master..xp_cmdshell ' + '"bcp ' + @dbName + '..' +o.Name + ' out ' + RTrim(@Path) + o.Name+'.out' + ' /n /U sa /P /S'+ RTrim(@Server) + '"' From sysobjects o Where type = 'U'
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site