Eng*_*SQL 5 sql-server dm-exec-sessions tabular-data-stream
来自 Microsoft 的sys.dm_exec_sessions SQL Server 文档
client_interface_name
Name of library/driver being used by the client to communicate with the server.
datatype: nvarchar(32)
client_version
TDS protocol version of the interface that is used by the client to connect to the server.
datatype: int
Run Code Online (Sandbox Code Playgroud)
TDSVersion
The highest TDS version being used by the client.
The client sends a standard LOGIN7 message to the server to discover the server's highest TDS version.
datatype: binary
Run Code Online (Sandbox Code Playgroud)
Ben Gribaudo发布了部分值图,并表明 client_version 实际上不是实际的 TDS 版本。
问题
(1) client_version 值的用途是什么?
(2) 如果 client_version 定义(上面)正确,那么整数值到 TDS 描述(字符串或二进制值)的官方文档映射在哪里?
(1) client_version 值有什么用?
对于管理员来说,寻找正在使用的旧库是有意义的,对于服务器来说,必须知道这一点,以便可以使用正确的协议版本。
(2) 如果 client_version 定义(上面)正确,那么整数值到 TDS 描述(字符串或二进制值)的官方文档映射在哪里?
它对于所有较新的东西都是正确的(这很好)。如果你想完整,它缺少 2 个值:
0: TDS 4.2
1: TDS 6.0
Run Code Online (Sandbox Code Playgroud)
AFAIK 没有官方文档。