Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Get SQL Server Details ( Edition , License ... etc ).

Total Hit ( 2981)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


How to obtain details about the server using the new SERVERPROPERTY system function?

Click here to copy the following block
SELECT CAST( SERVERPROPERTY( 'MachineName' ) AS varchar( 30 ) ) AS MachineName ,
    CAST( SERVERPROPERTY( 'InstanceName' ) AS varchar( 30 ) ) AS Instance ,
    CAST( SERVERPROPERTY( 'ProductVersion' ) AS varchar( 30 ) ) AS ProductVersion ,
    CAST( SERVERPROPERTY( 'ProductLevel'AS varchar( 30 ) ) AS ProductLevel ,
    CAST( SERVERPROPERTY( 'Edition' ) AS varchar( 30 ) ) AS Edition ,
    ( CASE SERVERPROPERTY( 'EngineEdition')
       WHEN 1 THEN 'Personal or Desktop'
       WHEN 2 THEN 'Standard'
       WHEN 3 THEN 'Enterprise'
    END ) AS EngineType ,
    CAST( SERVERPROPERTY( 'LicenseType' ) AS varchar( 30 ) ) AS LicenseType ,
     SERVERPROPERTY( 'NumLicenses' ) AS #Licenses;

Output

MachineName     Instance ProductVersion ProductLevel Edition          EngineType LicenseType #Licenses
--------------- -------- -------------- ------------ ---------------- ---------- ----------- ---------
VALHALLA-MDD06H EAP6     8.00.191       RTM          Standard Edition Standard   DISABLED    NULL


Click here to copy the following block
SELECT @@VERSION AS [SQL Server Details];

Output

SQL Server Details       
---------------------------------------------------------------------
Microsoft SQL Server  2000 - 8.00.191 (Intel X86) 
	Jul 27 2000 01:30:33 
	Copyright (c) 1988-2000 Microsoft Corporation
	Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 1)



Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.