zoukankan      html  css  js  c++  java
  • SQLSERVER版本号

    转】查看有关SQL SERVER 服务器实例的属性信息

    代码如下:SELECT SERVERPROPERTY('ServerName') AS ServerName
    SELECT SERVERPROPERTY('BuildClrVersion') AS BuildClrVersion
    SELECT SERVERPROPERTY('Collation') AS Collation
    SELECT SERVERPROPERTY('CollationID') AS CollationID
    SELECT SERVERPROPERTY('ComparisonStyle') AS ComparisonStyle
    SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS ComputerNamePhysicalNetBIOS
    SELECT SERVERPROPERTY('Edition') AS Edition
    SELECT SERVERPROPERTY('EditionID') AS EditionID
    SELECT SERVERPROPERTY('EngineEdition') AS EngineEdition
    SELECT SERVERPROPERTY('InstanceName') AS InstanceName
    SELECT SERVERPROPERTY('IsClustered') AS IsClustered
    SELECT SERVERPROPERTY('IsFullTextInstalled') AS IsFullTextInstalled
    SELECT SERVERPROPERTY('IsIntegratedSecurityOnly') AS IsIntegratedSecurityOnly
    SELECT SERVERPROPERTY('IsSingleUser') AS IsSingleUser
    SELECT SERVERPROPERTY('LCID') AS LCID
    SELECT SERVERPROPERTY('LicenseType') AS LicenseType
    SELECT SERVERPROPERTY('MachineName') AS MachineName
    SELECT SERVERPROPERTY('NumLicenses') AS NumLicenses
    SELECT SERVERPROPERTY('ProcessID') AS ProcessID
    SELECT SERVERPROPERTY('ProductVersion') AS ProductVersion
    SELECT SERVERPROPERTY('ProductLevel') AS ProductLevel
    SELECT SERVERPROPERTY('ResourceLastUpdateDateTime') AS ResourceLastUpdateDateTime
    SELECT SERVERPROPERTY('SqlCharSet') AS SqlCharSet
    SELECT SERVERPROPERTY('SqlCharSetName') AS SqlCharSetName
    SELECT SERVERPROPERTY('SqlSortOrder') AS SqlSortOrder
    SELECT SERVERPROPERTY('SqlSortOrderName') AS SqlSortOrderName
     
     

    SELECT  SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

    select @@VERSION

    SELECT     CAST(LEFT(CAST(SERVERPROPERTY('productversion') AS varchar(50)), CHARINDEX('.', CAST(SERVERPROPERTY('productversion') AS varchar(50))) - 1)
                           AS int) AS VersionMajor, CAST(SERVERPROPERTY('productversion') AS varchar(50)) AS productversion 

  • 相关阅读:
    NX 调试批处理文件
    NXOpen 更改UI对话框宽度
    NXOpen 遍历体 移动图层
    NXOpen 设置工作图层 一键开关图层
    NXOpen Block UI弹出另一个对话框实例
    NXOpen 座标UI获取 (原点 矩阵变换)
    [StackExchange]Redis 的几种类型的操作(string,hash,lists,set,sorted set)
    IIS 并发连接 设置与测试
    [StackExchage]Redis 的连接与操作(跨机器)
    Redis 事务
  • 原文地址:https://www.cnblogs.com/prtmon/p/2935429.html
Copyright © 2011-2022 走看看