sql - 出现错误 Could not find stored procedure 'sp_configure' 。在 SQL Server 中

标签 sql sql-server azure-sql-database

我需要更改并行度,但是当我运行它时出现错误

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  

最佳答案

您似乎正在使用 sp_configure 不可用的 Azure SQL 数据库。使用 ALTER DATABASE SCOPED CCONFIGURATION而不是配置 MAXDOP

关于sql - 出现错误 Could not find stored procedure 'sp_configure' 。在 SQL Server 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49031213/

相关文章:

.net - 引用Microsoft.SqlServer.Smo.dll

c# - SqlCommand.StatementCompleted 应该在什么时候触发?

mysql - 数据库设计,列数可变

sql - 如何在一个查询中使用两个 COUNT

sql-server - 数据库设计 - 最佳实践 - 一个用于 Web 表单下拉选项的表格或用于每个下拉选项的单独表格

machine-learning - 使用 Azure SQL Server 作为 Azure ML 训练服务输入参数

c# - Azure SQL - DTU CPU 使用差异

连接3个表时MySQL查询错误

sql - 如何对 ID 字段进行分组并选择在另一个字段 PostgreSQL 中具有最高值的行

azure - 将数据库迁移到 SQL Azure