Skip to content

Commit a9b8a2f

Browse files
authored
Merge pull request #4431 from hirokib/patch-1
Patch 1
2 parents a2ebb7d + 029f92e commit a9b8a2f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/t-sql/database-console-commands/dbcc-shrinkdatabase-transact-sql.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ manager: "jhubbard"
3737
ms.workload: "Active"
3838
---
3939
# DBCC SHRINKDATABASE (Transact-SQL)
40-
[!INCLUDE[tsql-appliesto-ss2008-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-asdb-xxxx-xxx-md.md)]
40+
[!INCLUDE[tsql-appliesto-ss2008-asdb-asdw-xxx-md](../../includes/tsql-appliesto-ss2008-asdb-asdw-xxx-md.md)]
4141

4242
Shrinks the size of the data and log files in the specified database.
4343

@@ -62,14 +62,14 @@ DBCC SHRINKDATABASE
6262
Is the percentage of free space that you want left in the database file after the database has been shrunk.
6363

6464
NOTRUNCATE
65-
Compacts the data in data files by moving allocated pages from the end of a file to unallocated pages in the front of the file. *target_percent* is optional.
65+
Compacts the data in data files by moving allocated pages from the end of a file to unallocated pages in the front of the file. *target_percent* is optional. This option is not supported with Azure SQL Data Warehouse.
6666

6767
The free space at the end of the file is not returned to the operating system, and the physical size of the file does not change. Therefore, when NOTRUNCATE is specified, the database appears not to shrink.
6868

6969
NOTRUNCATE is applicable only to data files. The log file is not affected.
7070

7171
TRUNCATEONLY
72-
Releases all free space at the end of the file to the operating system but does not perform any page movement inside the file. The data file is shrunk only to the last allocated extent. *target_percent* is ignored if specified with TRUNCATEONLY.
72+
Releases all free space at the end of the file to the operating system but does not perform any page movement inside the file. The data file is shrunk only to the last allocated extent. *target_percent* is ignored if specified with TRUNCATEONLY. This option is not supported with Azure SQL Data Warehouse.
7373

7474
TRUNCATEONLY affects the log file. To truncate only the data file, use DBCC SHRINKFILE.
7575

@@ -105,6 +105,9 @@ Running DBCC SHRINKDATABASE without specifying either the NOTRUNCATE option or t
105105
The database being shrunk does not have to be in single user mode; other users can be working in the database when it is shrunk. This includes system databases.
106106

107107
You cannot shrink a database while the database is being backed up. Conversely, you cannot backup a database while a shrink operation on the database is in process.
108+
109+
>[!NOTE]
110+
> Currently, Azure SQL Data Warehouse does not support DBCC SHRINKDATABASE with TDE enabled.
108111
109112
## How DBCC SHRINKDATABASE Works
110113
DBCC SHRINKDATABASE shrinks data files on a per-file basis, but shrinks log files as if all the log files existed in one contiguous log pool. Files are always shrunk from the end.

0 commit comments

Comments
 (0)