sql-server - 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 身份验证进行连接:同样的错误。
解决方案
推荐阅读
- node.js - TypeError:User.findOne 不是函数
- ionic-framework - 我想在ionic4 App中将id(存储在firestore中)从页面传递到另一个页面
- c++ - 如何访问我指向的数组的所有元素并在 mergeSort 函数调用期间更改它们?
- java - 尽管训练误差为 0.0,但经过训练的 SVM 只输出 1.0
- reactjs - Gatsby - 将组件放入组件中以制作模板
- javascript - Npm CLI 全局变量
- r - R闭包不能访问闭包内的变量
- excel - VBA - 如果行隐藏在下面,则求和
- python - 如何在数据库中查找重复项以及如何执行响应?
- r - 在 R Blogdown 中使用 serve_site 生成器 $render 时出错