Skip to content

Commit 230b54e

Browse files
authored
Update sql-transaction-log-grows.md
1 parent 74f766d commit 230b54e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

support/sql/database-engine/replication/sql-transaction-log-grows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ SELECT log_reuse_wait_desc FROM sys.databases WHERE name = '<your_cdc_database>'
8181
4. To make sure that the transaction log can be reused, confirm that there is no other reuse reason indicated on the database:
8282

8383
```sql
84-
SELECT log_reuse_wait_desc, NAME FROM sys.databases WHERE NAME = 'your_cdc_database'
84+
SELECT log_reuse_wait_desc, NAME FROM sys.databases WHERE NAME = '<your_cdc_database>'
8585
```
8686

8787
This returns output that resembles the following:
8888

8989
```output
9090
log_reuse_wait_desc name
91-
NOTHING your_cdc_database
91+
NOTHING <your_cdc_database>
9292
```
9393

9494
5. Now you should be able to truncate the Transaction log by using log backups. You should also be able to shrink the transaction log file to reduce the disk space that's consumed. For example, run the following:
9595
9696
```sql
97-
BACKUP LOG your_cdc_database TO DISK='c:\folder\logbackup.trn'
97+
BACKUP LOG <your_cdc_database> TO DISK='c:\folder\logbackup.trn'
9898
DBCC SHRINKFILE (yourcdcdatabase_log, 1024)
9999
```
100100

0 commit comments

Comments
 (0)