gebeurtenis
31 mrt, 23 - 2 apr, 23
De grootste SQL-, Fabric- en Power BI-leerevenement. 31 maart – 2 april. Gebruik code FABINSIDER om $ 400 te besparen.
Zorg dat u zich vandaag nog registreertDeze browser wordt niet meer ondersteund.
Upgrade naar Microsoft Edge om te profiteren van de nieuwste functies, beveiligingsupdates en technische ondersteuning.
Applies to:
SQL Server
Azure SQL Database
This topic describes how to change database-level options in SQL Server by using SQL Server Management Studio or Transact-SQL. 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:
Requires ALTER permission on the database.
In Object Explorer, connect to a Database Engine 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 Database Engine.
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 AdventureWorks2022
sample database.
USE master;
GO
ALTER DATABASE AdventureWorks2022
SET RECOVERY FULL, PAGE_VERIFY CHECKSUM;
GO
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
gebeurtenis
31 mrt, 23 - 2 apr, 23
De grootste SQL-, Fabric- en Power BI-leerevenement. 31 maart – 2 april. Gebruik code FABINSIDER om $ 400 te besparen.
Zorg dat u zich vandaag nog registreertTraining
Module
Databases configureren voor optimale prestaties - Training
Databases configureren voor optimale prestaties
Certificering
Microsoft Certified: Azure Database Administrator Associate - Certifications
Beheer een SQL Server-databaseinfrastructuur voor cloud-, on-premises en hybride relationele databases met behulp van de relationele Microsoft PaaS-databaseaanbiedingen.
Documentatie
View or Change the Properties of a Database - SQL Server
Learn how to view or change the properties of a database in SQL Server by using SQL Server Management Studio or Transact-SQL.
A SQL Server instance has its own program and data files. It can share common files with other instances of SQL Server. This article includes file locations.
View or change server properties (SQL Server) - SQL Server
Learn how to use SQL Server Management Studio, Transact-SQL, or SQL Server Configuration Manager to view or change the properties of an instance of SQL Server.