
复制-- To allow advanced options to be changed. EXEC sp_configure show advanced options,遍表数 1 GO -- To update the currently configured value for advanced options. RECONFIGURE GO -- To enable the feature. EXEC sp_configure xp_cmdshell, 1 GO -- To update the currently configured value for this feature. RECONFIGURE GO ---xp_cmdshell cd C:Program FilesMicrosoft SQL Server90ToolsBin xp_cmdshell dir *.exe SELECT NAME,NAME FROM SYS.OBJECTS xp_cmdshell bcp northwind.dbo.orders out c:mytest -T -c declare @sql nvarchar(max) set @sql= select @sql=@sql+ xp_cmdshell +bcp northwind.dbo.+quotename(name)+ out c:+name+.dat -T -c + from sys.objects where type=u; select @sql exec (@sql) 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.


相关文章
精彩导读
热门资讯
关注我们
