Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
This article describes how to view or change the properties of an instance of SQL Server by using SQL Server Management Studio, Transact-SQL, or SQL Server Configuration Manager.
Steps depend on the tool:
When using sp_configure
, you must run either RECONFIGURE
or RECONFIGURE WITH OVERRIDE
after setting a configuration option. The RECONFIGURE WITH OVERRIDE
statement is usually reserved for configuration options that should be used with extreme caution. However, RECONFIGURE WITH OVERRIDE
works for all configuration options, and you can use it in place of RECONFIGURE
.
Note
RECONFIGURE
executes within a transaction. If any of the reconfigure operations fail, none of the reconfigure operations will take effect.
Some property pages present information obtained via Windows Management Instrumentation (WMI). To display those pages, WMI must be installed on the computer running SQL Server Management Studio.
For more information, see Server-level roles.
Execute permissions on sp_configure
with no parameters or with only the first parameter are granted to all users by default. To execute sp_configure
with both parameters to change a configuration option or to run the RECONFIGURE
statement, a user must be granted the ALTER SETTINGS
server-level permission. The ALTER SETTINGS
permission is implicitly held by the sysadmin and serveradmin fixed server roles.
In Object Explorer, right-click a server, and then select Properties.
In the Server Properties dialog box, select a page to view or change server information about that page. Some properties are read-only.
Connect to the Database Engine.
From the Standard bar, select New Query.
Copy and paste the following example into the query window and select Execute. This example uses the SERVERPROPERTY built-in function in a SELECT
statement to return information about the current server. This scenario is useful when there are multiple instances of SQL Server installed on a Windows-based server, and the client must open another connection to the same instance that is used by the current connection.
SELECT CONVERT (sysname, SERVERPROPERTY('servername'));
GO
Connect to the Database Engine.
From the Standard bar, select New Query.
Copy and paste the following example into the query window and select Execute. This example queries the sys.servers catalog view to return the name (name
) and ID (server_id
) of the current server, and the name of the OLE DB provider (provider
) for connecting to a linked server.
USE master;
GO
SELECT name,
server_id,
provider
FROM sys.servers;
GO
Connect to the Database Engine.
From the Standard bar, select New Query.
Copy and paste the following example into the query window and select Execute. This example queries the sys.configurations catalog view to return information about each server configuration option on the current server. The example returns the name (name
) and description (description
) of the option, its value (value
), and whether the option is an advanced option (is_advanced
).
SELECT name,
description,
value,
is_advanced
FROM sys.configurations;
GO
Connect to the Database Engine.
From the Standard bar, select New Query.
Copy and paste the following example into the query window and select Execute. This example shows how to use sp_configure to change a server property. The example changes the value of the fill factor
option to 100
. The server must be restarted before the change can take effect.
USE master;
GO
EXECUTE sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXECUTE sp_configure 'fill factor', 100;
GO
RECONFIGURE;
GO
EXECUTE sp_configure 'show advanced options', 0;
GO
RECONFIGURE;
GO
For more information, see Server configuration options.
Some server properties can be viewed or changed by using SQL Server Configuration Manager. For example, you can view the version and edition of the instance of SQL Server, or change the location where error log files are stored. These properties can also be viewed by querying the Server dynamic management views and functions.
On the Start menu, point to All Programs, point to Microsoft SQL Server, point to Configuration Tools, and then select SQL Server Configuration Manager.
In SQL Server Configuration Manager, select SQL Server Services.
In the details pane, right-click SQL Server (<instancename>), and then select Properties.
In the SQL Server (<instancename>) Properties dialog box, change the server properties on the Service tab or the Advanced tab, and then select OK.
For some properties, you might need to restart the server before the change can take effect.
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Perform post-installation configuration of Windows Server - Training
Perform post-installation configuration of Windows Server
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Error when you click the Databases node - SQL Server
This article describes an error message that typically occurs in SSMS when there is a problem retrieving information about one or more databases of a SQL Server instance.
Server Properties (General Page) - SQL Server Management Studio - SQL Server
Become familiar with read-only properties in SQL Server. Examples include the server name, the operating system, the collation, and the SQL Server version.
Start, stop, pause, resume, and restart SQL Server services - SQL Server
Find out how to start, stop, pause, resume, or restart various SQL Server services. See how to use Transact-SQL, PowerShell, and other tools for these actions.