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 

  • 相关阅读:
    oracle pl/sql 中目录的创建
    oracle pl/sql中创建视图
    oracle pl/sql 函数中链表的使用
    oracle pl/sql 中的触发器
    (转载)gcc/g++打印头文件包含顺序和有效性
    (转载)Linux平台可以用gdb进行反汇编和调试
    (转载)轻量级Web服务器Lighttpd的编译及配置(for x86linux)
    (转载)浮点数的二进制表示
    gdb如何进行清屏
    gdb设置运行参数
  • 原文地址:https://www.cnblogs.com/prtmon/p/2935429.html
Copyright © 2011-2022 走看看