Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama SQL, Fabric and Power BI is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniuNí thacaítear leis an mbrabhsálaí seo a thuilleadh.
Uasghrádú go Microsoft Edge chun leas a bhaint as na gnéithe is déanaí, nuashonruithe slándála, agus tacaíocht theicniúil.
Applies to:
SQL Server
This article describes how to increase the size of a database in SQL Server by using SQL Server Management Studio or Transact-SQL. The database is expanded by either increasing the size of an existing data or log file, or by adding a new file to the database.
You can't add or remove a file while a BACKUP
statement is running.
Requires ALTER
permission on the database.
In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
Expand Databases, right-click the database to increase, and then select Properties.
In Database Properties, select the Files page.
To increase the size of an existing file, increase the value in the Initial Size (MB) column for the file. You must increase the size of the database by at least 1 megabyte.
To increase the size of the database by adding a new file, select Add and then enter the values for the new file. For more information, see Add Data or Log Files to a Database.
Select OK.
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 changes the size of the file test1dat3
to 200 MB.
USE master;
GO
ALTER DATABASE AdventureWorks2022
MODIFY FILE (NAME = test1dat3, SIZE = 200 MB);
GO
For more examples, see ALTER DATABASE (Transact-SQL) File and Filegroup Options.
Ócáid
Mar 31, 11 PM - Apr 2, 11 PM
An ócáid foghlama SQL, Fabric and Power BI is mó. Márta 31 – 2 Aibreán. Bain úsáid as cód FABINSIDER chun $ 400 a shábháil.
Cláraigh inniuOiliúint
Modúl
Configure SQL Server resources for optimal performance - Training
Configure SQL Server resources for optimal performance
Deimhniú
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.