Script to get the sqlserver configuration detials for audit purpose

Posted: June 22, 2010 in Scripts to use

Below script will help you get the configuration details of sqlserver. This configuration can be captured and use it anytime to perform audit and to do inventory.

—-Script to get configuration details—-
SERVERPROPERTY(‘BuildClrVersion’)as dotNetBuildClrVersion,
SERVERPROPERTY(‘ComputerNamePhysicalNetBIOS’)as ComputerNamePhysicalNetBIOS,
SERVERPROPERTY(‘EngineEdition’)as EngineEdition,
SERVERPROPERTY(‘InstanceName’)as InstanceName,
SERVERPROPERTY(‘IsClustered’)as IsClustered,
SERVERPROPERTY(‘IsFullTextInstalled’)as IsFullTextInstalled,
SERVERPROPERTY(‘IsIntegratedSecurityOnly’)as IsIntegratedSecurityOnly,
SERVERPROPERTY(‘IsSingleUser’)as IsSingleUser,
SERVERPROPERTY(‘MachineName’)as MachineName,
SERVERPROPERTY(‘LicenseType’)as LicenseType,
SERVERPROPERTY(‘ProcessID’)as ProcessID,
SERVERPROPERTY(‘ProductVersion’)as ProductVersion,
SERVERPROPERTY(‘ProductLevel’)as ProductLevel,
SERVERPROPERTY(‘ResourceLastUpdateDateTime’)as ResourceLastUpdateDateTime,
SERVERPROPERTY(‘ResourceVersion’)as SqlserverResourceVersion,
SERVERPROPERTY(‘ServerName’)as ServerName


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s