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 

  • 相关阅读:
    November 13th 2016 Week 47th Sunday The 1st Day
    November 12th 2016 Week 46th Saturday
    November 11th 2016 Week 46th Friday
    November 10th 2016 Week 46th Thursday
    November 9th 2016 Week 46th Wednesday
    November 8th 2016 Week 46th Tuesday
    windows 7文件共享方法
    Win7无线网络共享设置方法
    常量指针和指针常量
    如何查找局域网的外网ip
  • 原文地址:https://www.cnblogs.com/prtmon/p/2935429.html
Copyright © 2011-2022 走看看