You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/backup-restore/sql-server-vss-writer-logging.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,12 @@ As [SQL Server Back up Applications - Volume Shadow Copy Service (VSS) and SQL W
25
25
- It's on by default
26
26
- It's system-wide (it will trace SQL Writer activity against all SQL Server instances running on the server)
27
27
- It's text-based
28
-
- Its working directory is **`C:\Program Files\Microsoft SQL Server\90\Shared`**
28
+
- Its working directory is `C:\Program Files\Microsoft SQL Server\90\Shared`
29
29
- Within that directory:
30
-
- Logging takes place in file **`SqlWriterLogger.txt`**
30
+
- Logging takes place in file `SqlWriterLogger.txt`
31
31
- This file gets renamed to `SqlWriterLogger1.txt` when reaching a maximum size (by default 1 MB), with logging continuing in main `SqlWriterLogger.txt`.
32
32
- There's only one rollover file, so the second rollover would overwrite the existing `SqlWriterLogger1.txt`.
33
-
- Parameters are managed by file **`SqlWriterConfig.ini`**
33
+
- Parameters are managed by file `SqlWriterConfig.ini`
34
34
35
35
SQL Writer being a [!INCLUDE[ssSQL11](../../includes/ssnoversion-md.md)] shared component, it has a single instance on a system and its major version will be the same as the highest major version of any installed [!INCLUDE[ssSQL11](../../includes/ssnoversion-md.md)] Instance. For example, if instances of, say,[!INCLUDE[ssSQL11](../../includes/sssql11-md.md)], [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)], [!INCLUDE[sssql15-md](../../includes/sssql16-md.md)] SP2 and [!INCLUDE[sssql19-md](../../includes/sssql19-md.md)] are collocated on the same system, the SQL Writer binary will be the one provided by [!INCLUDE[sssql19-md](../../includes/sssql19-md.md)] and will service all running instances from all major versions (even though its home directory remains under \90). Local instances and versions will benefit from the new [!INCLUDE[sssql19-md](../../includes/sssql19-md.md)] tracing described here. It also implies that only [!INCLUDE[sssql19-md](../../includes/sssql19-md.md)] cumulative updates will upgrade SQL Writer binaries in this situation.
36
36
@@ -160,7 +160,7 @@ These entries provide details on the VSS operations that were previously difficu
160
160
161
161
To illustrate the earlier statement that SQL Writer logging complements original EventLog architecture, let’s look at the entries associated to a well-known failure situation: a Torn Database. It can occur when a VSS backup attempts to create a snapshot set of volumes where only a partial set of files of a given database is included. SQL Writer will block it as per VSS conventions.
162
162
163
-
This extract is the content of **`SqlWriterLogger.txt`** for the operation:
163
+
This extract is the content of `SqlWriterLogger.txt` for the operation:
164
164
165
165
```txt
166
166
[01/11/2021 02:57:00, TID 5a88] Entering SQL Writer OnIdentify.
@@ -183,7 +183,7 @@ This extract is the content of **`SqlWriterLogger.txt`** for the operation:
183
183
[01/11/2021 02:57:03, TID 5a88] Entering SQL Writer OnAbort.
184
184
```
185
185
186
-
From SqlWriterLogger.txt we see that a failure occurred, however the only details we have on failure is the `0x80780002 HResult`. This value is difficult to interpret without the error code references (it*does* identify the Torn Database situation though).
186
+
From SqlWriterLogger.txt we see that a failure occurred, however the only details we have on failure is the `0x80780002 HResult`. This value is difficult to interpret without the error code references. It*does* identify the Torn Database situation though.
187
187
188
188
Now let’s check the contents of Windows Application Event Logs:
0 commit comments