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/t-sql/database-console-commands/dbcc-tracestatus-transact-sql.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Is the number of the trace flag for which the status is displayed. If *trace#*,
50
50
Is a placeholder that indicates multiple trace flags can be specified.
51
51
52
52
-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.
54
54
55
55
WITH NO_INFOMSGS
56
56
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.
65
65
|**Global**|Indicates whether the trace flag is set globally<br /><br /> 1 = True<br /><br /> 0 = False|
66
66
|**Session**|Indicates whether the trace flag is set for the session<br /><br /> 1 = True<br /><br /> 0 = False|
67
67
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.
69
69
70
70
## Remarks
71
71
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);
88
88
GO
89
89
```
90
90
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.
0 commit comments