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 

  • 相关阅读:
    Java之IO流
    Servlet中Session的用法
    Servlet中Cookie的用法
    HTML的表单元素和input元素
    Servlet第一个实例之用户登录网址
    Servlet的生命周期和三种实现方式
    写一下近期的计划(工作)
    RxJava的基础知识
    actionbar、toolbar、menu之间的关系
    ButterKnife的基础知识
  • 原文地址:https://www.cnblogs.com/prtmon/p/2935429.html
Copyright © 2011-2022 走看看