sql-server - 无法在 Linux 上的 SQL Server 2017 Express 上启用 xp_cmdshell

标签 sql-server

我正在尝试在 Linux RedHat 7.4 上运行的 SQL Server 2017 Express 上启用 xp_cmdshell

我正在关注 this guide ,并得到以下错误:

The specified option 'xp_cmdshell' is not supported by this edition of SQL Server and cannot be changed using sp_configure.

缺少它是因为 xp_cmdshell 在 Linux 上不起作用,还是因为我使用的是免费的 Express 版本?

谢谢!

最佳答案

而且您也无法启用它。 Editions and supported features of SQL Server 2017 on Linux - Unsupported features & services :

The following features and services are not available for SQL Server 2017 on Linux. The support of these features will be increasingly enabled over time.

Area Unsupported feature or service
Database engine Merge replication
Stretch DB
PolyBase
Distributed query with 3rd-party connections
Linked Servers to data sources other than SQL Server
System extended stored procedures (XP_CMDSHELL, etc.)
Filetable, FILESTREAM
CLR assemblies with the EXTERNAL_ACCESS or UNSAFE permission set
Buffer Pool Extension

注意“系统扩展存储过程(XP_CMDSHELL 等)”被列为不受支持。


SQL Server 2019也是如此(请注意,虽然 Polybase 已从不受支持的项目中删除):

The following features and services are not available for SQL Server 2019 on Linux. The support of these features will be increasingly enabled over time.

Area Unsupported feature or service
Database engine Merge replication
Stretch DB
Distributed query with 3rd-party connections
Linked Servers to data sources other than SQL Server
System extended stored procedures (XP_CMDSHELL, etc.)
Filetable, FILESTREAM
CLR assemblies with the EXTERNAL_ACCESS or UNSAFE permission set
Buffer Pool Extension

关于sql-server - 无法在 Linux 上的 SQL Server 2017 Express 上启用 xp_cmdshell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59971345/

相关文章:

sql - 如何将具有任何列的值表复制到具有一列的其他表

sql-server - AzureDevOps 管道和 sqlpackage

sql-server - 为什么此 T-SQL 查询会抛出 "aggregate function"错误消息?

sql - SQL 用户在 Azure 中导出 bacpac 所需的最低角色是什么?

c# - 将 BIT 值传递给 sql server 存储过程

mysql - 尝试使用名为 `lineno` 的列时出现语法错误

php - Laravel 5 存储过程错误

sql-server - 使用两个条件过滤 SSMS 中的表

sql-server - Varchar 的最大大小(max)

c# - 为什么该行没有被插入到数据库中? C#