SSMS 連線資訊
錯誤記錄檔案 (ErrorLog)
@@version
SELECT @@VERSION
Microsoft SQL Server 2022 (RTM) - 16.0.1000.6 (X64)Oct 8 2022 05:58:25Copyright (C) 2022 Microsoft Corporation Developer Edition (64-bit)on Windows 10 Pro 10.0 <X64> (Build 19045: ) (Hypervisor)
SERVERPROPERTY 和相關語法
SELECT
@@SERVERNAME AS [SERVER_NAME] ,
@@SERVICENAME AS [SERVICE_NAME] ,
RIGHT(LEFT(@@VERSION,25),4) AS 'SQL Server' ,
SERVERPROPERTY('ProductVersion') AS ProductVersion,
SERVERPROPERTY('ProductLevel') AS ProductLevel,
SERVERPROPERTY('Edition') AS Edition
SERVERPROPERTY() 的 ProductLevel 屬性回傳值
- RTM = 原始發行版本
- SPn = Service Pack 版本
- CTP = Community Technology Preview 版本
SQL Server 2017 開始就沒有 SP,只有 Cumulative Update (CU) 而已,詳見 No More Service Packs for SQL Server
沒有留言:
張貼留言