Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit a105430

Browse files
authored
Merge pull request #8983 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to master to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents dc91f7e + de8ce4c commit a105430

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

docs/database-engine/availability-groups/windows/manually-prepare-a-secondary-database-for-an-availability-group-sql-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ This topic describes how to prepare a database for an Always On availability gro
192192
193193
```
194194
BACKUP LOG MyDB1
195-
TO DISK = 'E:\MyDB1_log.bak'
195+
TO DISK = 'E:\MyDB1_log.trn'
196196
GO
197197
```
198198
@@ -202,7 +202,7 @@ This topic describes how to prepare a database for an Always On availability gro
202202
203203
```
204204
RESTORE LOG MyDB1
205-
FROM DISK = 'E:\MyDB1_log.bak'
205+
FROM DISK = 'E:\MyDB1_log.trn'
206206
WITH FILE=1, NORECOVERY
207207
GO
208208
```

docs/relational-databases/databases/file-states.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
4343
|State|Definition|
4444
|-----------|----------------|
4545
|ONLINE|The file is available for all operations. Files in the primary filegroup are always online if the database itself is online. If a file in the primary filegroup is not online, the database is not online and the states of the secondary files are undefined.|
46-
|OFFLINE|The file is not available for access and may not be present on the disk. Files become offline by explicit user action and remain offline until additional user action is taken.<br /><br /> **\*\* Caution \*\*** A file should only be set offline when the file is corrupted, but it can be restored. A file set to offline can only be set online by restoring the file from backup. For more information about restoring a single file, see [RESTORE &#40;Transact-SQL&#41;](../../t-sql/statements/restore-statements-transact-sql.md).|
46+
|OFFLINE|The file is not available for access and may not be present on the disk. Files become offline by explicit user action and remain offline until additional user action is taken.<br /><br /> **\*\* Caution \*\*** A file state can be set offline when the file is corrupted, but it can be restored. A file set to offline can only be set online by restoring the file from backup. For more information about restoring a single file, see [RESTORE &#40;Transact-SQL&#41;](../../t-sql/statements/restore-statements-transact-sql.md). <br /><br /> A database file is also set OFFLINE when a database is in full or bulk logged recovery and a file is dropped. The entry in sys.master_files persists until a transaction log is truncated past the drop_lsn value. For more information, see [Transaction Log Truncation](../../relational-databases/logs/the-transaction-log-sql-server.md#Truncation). |
4747
|RESTORING|The file is being restored. Files enter the restoring state because of a restore command affecting the whole file, not just a page restore, and remain in this state until the restore is completed and the file is recovered.|
4848
|RECOVERY PENDING|The recovery of the file has been postponed. A file enters this state automatically because of a piecemeal restore process in which the file is not restored and recovered. Additional action by the user is required to resolve the error and allow for the recovery process to be completed. For more information, see [Piecemeal Restores &#40;SQL Server&#41;](../../relational-databases/backup-restore/piecemeal-restores-sql-server.md).|
4949
|SUSPECT|Recovery of the file failed during an online restore process. If the file is in the primary filegroup, the database is also marked as suspect. Otherwise, only the file is suspect and the database is still online.<br /><br /> The file will remain in the suspect state until it is made available by one of the following methods:<br /><br /> Restore and recovery<br /><br /> DBCC CHECKDB with REPAIR_ALLOW_DATA_LOSS|
@@ -59,5 +59,3 @@ monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-s
5959
[DBCC CHECKDB &#40;Transact-SQL&#41;](../../t-sql/database-console-commands/dbcc-checkdb-transact-sql.md)
6060

6161
[Database Files and Filegroups](../../relational-databases/databases/database-files-and-filegroups.md)
62-
63-

0 commit comments

Comments
 (0)