Read + Write + Report
Home | Start a blog | About Orble | FAQ | Blogs | Writers | My Orble | Login

SQL Server System Configuration Values

July 28th 2008 07:04
SQL Server System Configuration Values


Problem
Often times we need to review the SQL Server instance configuration values while troubleshooting performance problems. What alternatives are available to capture this information? With all of the new views in SQL Server 2005, is one available with the configuration values, a description and the list of possible values?

Solution
Catalog views return information used by the Microsoft SQL Server 2005 database engine. They are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized access to this information. All user available catalog metadata is exposed through catalog views. The catalog view that provides details about all the server wide configuration values is called sys.configurations.


The sys.configurations view has over 60 counters which provide information about all the server wide configuration options to include:

name - Name of the Configuration option.

value - Configured value for this option.

minimum - Minimum value for the configuration option.

maximum - Maximum value for the configuration option.

value_in_use - Running value currently in effect for this option.

description - Description of the configuration option.

is_dynamic - A value of 1 indicates that the variable takes effect when the RECONFIGURE statement is executed.

is_advanced - A value of 1 indicates that the variable is displayed only when the show advanced option is set.

Source - SQL Server 2005 Books Online - sys.configurations

Querying sys.configurations

The sys.configurations catalog view can be queried with simple SELECT statements. Here are some examples:


Simple SELECT for all Values

SELECT *
FROM sys.configurations
GO

All Advanced Options Configurations

SELECT *
FROM sys.configurations
WHERE is_advanced = 1
GO

All Options Requiring the RECONFIGURE Option

SELECT *
FROM sys.configurations
WHERE is_dynamic = 1
GO

All Memory Related Configurations

SELECT *
FROM sys.configurations
WHERE Name LIKE '%mem%'
GO

55
Vote
Add To: del.icio.us Digg Furl Spurl.net StumbleUpon Yahoo


   

   

   


Add A Comment

To create a fully formatted comment please click here.


CLICK HERE TO LOGIN | CLICK HERE TO REGISTER

Name or Orble Tag
Home Page (optional)
Comments
Bold Italic Underline Strikethrough Separator Left Center Right Separator Quote Insert Link Insert Email
Notify me of replies
Notify extra people about this comment
Is this a private comment?
List the Email Addresses or Orble Tags of the people you would like to be notified about this comment


One per line max of 30

List the Email Addresses or Orble Tags of the people you would like to be notified about this private comment thread. Only the people in this list will be able to see or reply to your comment.


One per line max of 30

Your Name
(for the email going out to the above list, it can be different to your Orble Tag)
Your Email Address
(optional)
(required for reply notification)
Submit
More Posts
4 Posts
11 Posts
1 Posts
77 Posts dating from May 2008
Email Subscription
Receive e-mail notifications of new posts on this blog:
0

Siddharth sood's Blogs

37 Vote(s)
0 Comment(s)
1 Post(s)
84 Vote(s)
0 Comment(s)
2 Post(s)
37 Vote(s)
0 Comment(s)
1 Post(s)
50 Vote(s)
0 Comment(s)
1 Post(s)
29 Vote(s)
0 Comment(s)
1 Post(s)
76 Vote(s)
0 Comment(s)
2 Post(s)
169 Vote(s)
0 Comment(s)
4 Post(s)
213 Vote(s)
2 Comment(s)
5 Post(s)
26 Vote(s)
0 Comment(s)
1 Post(s)
25 Vote(s)
0 Comment(s)
1 Post(s)
Moderated by Siddharth sood
Copyright © 2006 2007 2008 On Topic Media PTY LTD. All Rights Reserved. Design by Vimu.com.
On Topic Media ZPages: Sydney |  Melbourne |  Brisbane |  London |  Birmingham |  Leeds     [ Advertise ] [ Contact Us ] [ Privacy Policy ]