Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • send attachment from unix-shell script Linux/Unix
  • Search and replace pattern Linux/Unix
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • tblwopk.sql tablewopk.sql Oracle
  • get_vmstat.ksh Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • PLSQL Table Syntax 1 Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Trace a SQL session from another session using ORADEBUG Oracle
  • Getting started with notebook Python/PySpark
  • tab.sql Oracle
  • Absolute file number and relative file number Oracle

Checking SQL Server Version

Posted on 25-Jul-202525-Jul-2025 By Admin No Comments on Checking SQL Server Version

To check which SQL Server version and edition you are running, you can use the following methods:

1. Using SQL Query (Most Reliable)

Run the following SQL query in SQL Server Management Studio (SSMS) or any query tool:

SELECT @@VERSION;

This will return a string containing the SQL Server version, edition, and service pack (if any).

2. Using ServerProperty Function (More Detailed)

SELECT  
    SERVERPROPERTY('ProductVersion') AS Version,  -- Major.Minor.Build
    SERVERPROPERTY('ProductLevel') AS ProductLevel,  -- RTM, SP1, SP2, etc.
    SERVERPROPERTY('Edition') AS Edition,  -- Enterprise, Standard, Express, etc.
    SERVERPROPERTY('EngineEdition') AS EngineEdition;  -- 3 = Standard/Enterprise, 5 = Express

3. Using SQL Server Management Studio (SSMS)

  • Open SSMS and connect to the instance.
  • In Object Explorer, right-click the server name and select Properties.
  • Look for the “Product” and “Version” fields in the General tab.

4. Using Command Prompt (For Installed Versions)

You can also check installed SQL Server versions using Command Prompt:

sqlcmd -S <server_name> -E -Q "SELECT @@VERSION"

or

osql -S <server_name> -E -Q "SELECT @@VERSION"

Interpreting the Version

The @@VERSION query will return output like:

Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)
    Oct  8 2019 19:40:22
    Copyright (C) 2019 Microsoft Corporation
    Enterprise Edition (64-bit) on Windows Server 2019

Here:

  • 15.0.2000.5 → SQL Server 2019
  • Enterprise Edition (64-bit) → SQL Server Edition
  • RTM → No service pack installed

SQL Server Version Numbers

Version NumberSQL Server Version
8.xSQL Server 2000
9.xSQL Server 2005
10.xSQL Server 2008
10.5.xSQL Server 2008 R2
11.xSQL Server 2012
12.xSQL Server 2014
13.xSQL Server 2016
14.xSQL Server 2017
15.xSQL Server 2019
16.xSQL Server 2022

SQL Server

Post navigation

Previous Post: Oracle vs MYSQL Architecture differences (For DBAs)
Next Post: Check SQL Server edition

Related Posts

  • SQL Server Vs Oracle Architecture difference SQL Server
  • Check SQL Server edition SQL Server
  • SQL Server: How to see historical transactions SQL Server
  • T-SQL Vs PL/SQL Syntax SQL Server
  • SQL Server: How to see current transactions or requests SQL Server

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • rm_backup_arch_file.ksh Linux/Unix
  • Database logon trigger issue Oracle
  • SAN Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • sess1.sql Oracle
  • move_arch_files.ksh Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme