Skip to content

Commit f9f61eb

Browse files
authored
Merge pull request #20636 from MicrosoftDocs/MikeRayMSFT-patch-1
Update dbcc-tracestatus-transact-sql.md
2 parents a6f8ce5 + 0ef22fc commit f9f61eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Is the number of the trace flag for which the status is displayed. If *trace#*,
5050
Is a placeholder that indicates multiple trace flags can be specified.
5151

5252
-1
53-
Displays the status of trace flags that are enabled globally. If -1 is specified without *trace#*, all the global trace flags that are enabled are displayed.
53+
Displays the status of trace flags that are enabled globally and for the current session. If -1 is specified without *trace#*, all trace flags including session enabled are returned.
5454

5555
WITH NO_INFOMSGS
5656
Suppresses all informational messages that have severity levels from 0 through 10.
@@ -65,7 +65,7 @@ The following table describes the information in the result set.
6565
|**Global**|Indicates whether the trace flag is set globally<br /><br /> 1 = True<br /><br /> 0 = False|
6666
|**Session**|Indicates whether the trace flag is set for the session<br /><br /> 1 = True<br /><br /> 0 = False|
6767

68-
DBCC TRACESTATUS returns a column for the trace flag number and a column for the status. This indicates whether the trace flag is ON (1) or OFF (0). The column heading for the trace flag number is either **Global Trace Flag** or **Session Trace Flag**, depending on whether you are checking the status for a global or a session trace flag.
68+
DBCC TRACESTATUS returns a column for the trace flag number and a column for the status. This indicates whether the trace flag is ON (1) or OFF (0). The column heading for the trace flag number is either **Global** or **Session**, depending on whether you are checking the status for a global or a session trace flag.
6969

7070
## Remarks
7171
In [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], there are two types of trace flags: session and global. Session trace flags are active for a connection and are visible only for that connection. Global trace flags are set at the server level and are visible to every connection on the server.
@@ -88,7 +88,7 @@ DBCC TRACESTATUS (2528, 3205);
8888
GO
8989
```
9090

91-
The following example displays whether trace flag `3205` is enabled globally.
91+
The following example displays whether trace flag `3205` is enabled for the current session or globally.
9292

9393
```sql
9494
DBCC TRACESTATUS (3205, -1);

0 commit comments

Comments
 (0)