| title | Change the Configuration Settings for a Database | Microsoft Docs | |||
|---|---|---|---|---|
| ms.custom | ||||
| ms.date | 03/14/2017 | |||
| ms.prod | sql-server-2016 | |||
| ms.reviewer | ||||
| ms.suite | ||||
| ms.technology |
|
|||
| ms.tgt_pltfrm | ||||
| ms.topic | article | |||
| helpviewer_keywords |
|
|||
| ms.assetid | c29c3385-5043-400f-bb4e-044a4c9a9a4b | |||
| caps.latest.revision | 29 | |||
| author | BYHAM | |||
| ms.author | rickbyh | |||
| manager | jhubbard |
This topic describes how to change database-level options in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. These options are unique to each database and do not affect other databases.
In This Topic
-
Before you begin:
-
To change the option settings for a database, using:
- Only the system administrator, database owner, members of the sysadmin and dbcreator fixed server roles and db_owner fixed database roles can modify these options.
Requires ALTER permission on the database.
-
In Object Explorer, connect to a [!INCLUDEssDE] instance, expand the server, expand Databases, right-click a database, and then click Properties.
-
In the Database Properties dialog box, click Options to access most of the configuration settings. File and filegroup configurations, mirroring and log shipping are on their respective pages.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example sets the recovery model and data page verification options for the [!INCLUDEssSampleDBobject] sample database.
[!code-sqlDatabaseDDL#AlterDatabase7]
For more examples, see ALTER DATABASE SET Options (Transact-SQL).
ALTER DATABASE Compatibility Level (Transact-SQL)
ALTER DATABASE Database Mirroring (Transact-SQL)
ALTER DATABASE SET HADR (Transact-SQL)
Rename a Database
Shrink a Database