随笔分类 - Sql Server
摘要:1.恢复xp_cmdshell SQL Server阻止了对组件 'xp_cmdshell' 的过程'sys.xp_cmdshell' 启用,因为此组件已作为此服务器安全配置的一部分而被关闭。 解决方法:系统管理员可以通过使用 sp_configure 启用 'xp_cmdshell'。 )运行: EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE; 如果
阅读全文
摘要:1.使用存储过程:exec sp_msforeachtable 'sp_changeobjectowner ''shanlin'', ''dbo'''
阅读全文