@@OPTIONS
reads configuration (@@ function)
What changes
- Input
- server or session configuration state
- Output or change
- value
- Return type
- integer
Syntax at a glance
@@OPTIONS
Work example
Inspect the bitmask of SET options enabled for the current session.
Read in the same session and compare before and after a controlled session setting change.
Check your work Decode documented option bits rather than treating the integer as one setting.
Open Microsoft Learn for full syntax, permissions, and details for your version.