获取错误无法找到存储过程'sp_configure'。在sql server中

问题描述 投票:2回答:1

我需要改变并行度,但是当我运行时我会收到错误

Could not find stored procedure 'sp_configure'.

这是我的脚本

USE test;  
GO   
EXEC sp_configure 'show advanced options', 1;  
GO  
RECONFIGURE WITH OVERRIDE;  
GO  
EXEC sp_configure 'max degree of parallelism', 8;  
GO  
RECONFIGURE WITH OVERRIDE;  
GO  
sql sql-server azure-sql-database
1个回答
4
投票

您似乎使用的是Azure SQL数据库,其中sp_configure不可用。使用ALTER DATABASE SCOPED CCONFIGURATION来配置MAXDOP

© www.soinside.com 2019 - 2024. All rights reserved.