我收到了下面的过程2时出现了错误:
CONFIG语句不能在用户事务内使用
有什么解决办法吗?谢谢。
过程 #1:
CREATE PROC [dbo].[nz_test1]
as
EXEC sp_configure 'show advanced option', 1
RECONFIGURE WITH OVERRIDE
EXEC sp_configure 'xp_cmdshell', 1
EXEC sp_configure 'ad hoc distributed queries', 1
RECONFIGURE WITH OVERRIDE
select 1
第二步骤:
create proc [dbo].[test_nz_tb3]
as
create table #t (a varchar(2))
insert into #t
exec nz_test1