关于sqlserver的版本选择

如何确认SQLServer及OS是32位还是64位

执行 SELECT @@VERSION 返回当前的 SQL Server 安装的版本、处理器体系结构、生成日期和操作系统。

  • 示例1:在 32-bit OS 安装 32-bit SQL Server

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86) Apr 2 2010 15:53:02
Copyright (c) Microsoft Corporation Enterprise Edition on Windows NT 5.2 <X86> (Build 3790: Service Pack 2)

  • 示例2:在 64-bit OS 安装 64-bit SQL Server

Microsoft SQL Server 2014 - 12.0.2269.0 (X64) Jun 10 2015 03:35:45
Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

  • 示例3:在 64-bit OS 安装 32-bit SQL Server

Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (Intel X86) Jun 28 2012 08:42:37
Copyright (c) Microsoft Corporation Enterprise Edition on Windows NT 6.2 <X64> (Build 9200: ) (WOW64) (Hypervisor)

查看更详细的版本信息

  • 执行如下语句可以查看更清晰、更详细的版本信息,示例 Windows 2012 64bit 安装 SQL 2016 64bit
SELECT
  @@SERVERNAME AS ServerName,
  SERVERPROPERTY('ProductVersion') AS ProductVersion,
  SERVERPROPERTY('ProductLevel') AS ProductLevel,
  SERVERPROPERTY('Edition') AS Edition,
  @@VERSION AS Version
FROM sys.dm_os_sys_info
ServerName ProductVersion ProductLevel Edition Version
SQL01\WMS 13.0.5026.0 SP2 Enterprise Edition (64-bit) SQL Server 2016 (SP2) - 13.0.5026.0 (X64)
Enterprise Edition (64-bit)
on Windows Server 2012 R2 Datacenter 6.3 <X64>

32位OS能否安装64位SQL,或64位OS能否安装32位SQL

  • 记住一句话:64位OS可以安装32位及64位SQL,而32位OS则只能安装32位SQL。
Version 32-bit SQL Server 64-bit SQL Server
32-bit OS ×
64-bit OS
Copyright © www.sqlfans.cn 2024 All Right Reserved更新时间: 2024-07-07 22:39:18

results matching ""

    No results matching ""