SQL Server 2012 企业版有两种licensing授权模式
(2015-08-28 13:11:24)分类: sqlserver |
SQL Server 2012 企业版有两种licensing model:
-
基于服务器和客户端访问授权模式
Server and Client Access License (CAL) Licensing -
基于Core模式的访问授权模式 Core-Based Licensing:
这两种模式在技术层面上,显著的限制是:基于CAL模式的Lincense有20个Core的使用限制,如果你用的超线程,那么就是40 logical processors的限制。
如果服务器的逻辑cpu个数超过这个数,比如常见的64个的话,在sql server errorlog信息会有如下信息:
SQL Server detected 4 sockets with 6 cores per socket and 6 logical processors per socket, 24 total logical processors; using 20 logical processors based on SQL Server licensing.
或者:
SQL Server detected 4 sockets with 8 cores per socket and 16 logical processors per socket, 64 total logical processors; using 40 logical processors based on SQL Server licensing.
如果遇到这种情况,就说明你在安装SQL Server时,输入的产品key是基于CAL的授权模式,那么如何升级为Core模式的Lincense呢?
方法如下:
1
|
Setup.exe /q /ACTION =editionupgrade /INSTANCENAME =MSSQLSERVER /PID = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" /IACCEPTSQLSERVERLICENSET |
注意:上述命令中的PID="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"即为你购买的基于Core模式的产品Key.
那么如何来确定自己所安装的SQL Server 2012是哪种授权模式呢?代码如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
SELECT SERVERPROPERTY( 'Edition' ) AS Edition CASE SERVERPROPERTY( 'EditionID' ) WHEN 1804890536 THEN 'Enterprise WHEN 1872460670 THEN ' WHEN 610778273 THEN 'Enterprise WHEN 284895786 THEN ' WHEN -2117995310 THEN 'Developer' WHEN -1592396055 THEN 'Express' WHEN -133711905 THEN 'Express WHEN -1534726760 THEN 'Standard' WHEN 1293598313 THEN 'Web' ELSE '' END AS [Licensing |