首页 > 解决方案 > Linux SQL Server:无法使用 SSMS 显示日志

问题描述

刚刚在 Ubuntu 16.04.3 上安装了 SQLServer(Express 版,版本 14.0.3030)。

常规操作正常工作:客户端连接和查询、AD 集成登录、备份/恢复。

我无法从 Windows 10 Pro 1709 x64 显示带有 SSMS(版本 17.8.1)的日志:扩展“管理”->“SQL Server 日志”我收到以下错误:

TITLE: Microsoft SQL Server Management Studio
------------------------------
Failed to retrieve data for this request.  (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
------------------------------
A severe error occurred on the current command.
The results, if any, should be discarded. (Microsoft SQL Server, Error: 0)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=14.00.3030&EvtSrc=MSSQLServer&EvtID=0&LinkId=20476

在 Google 上搜索导致建议运行 sys.xp_readerrorlog 的帖子。这是输出:

EXEC sys.xp_readerrorlog

Msg 22004, Level 16, State 1, Line 0
Failed to open loopback connection. Please see event log for more information.
Msg 22004, Level 16, State 1, Line 0
Error log location not found.

SQLServer 登录/var/opt/mssql/log显示没有任何有趣的内容。有什么建议吗?

更新:尝试使用 SQL 身份验证和集成 AD 身份验证进行连接:同样的错误。

标签: sql-serverlinuxubuntu-16.04

解决方案


推荐阅读