下面摘抄的是部分說明,更多內容可查看文檔。
每個選項的值都可使用以下語句確定。
SELECT * FROM sys.configurations
ORDER BY name ;
GO
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'cursor threshold', 0;
GO
RECONFIGURE;
GO
對於今天的錯誤,可以執行如下sql語句以更改服務器的配置:
go
reconfigure;
go
exec sp_configure 'Ad Hoc Distributed Queries',1
go
reconfigure;
go