SQL Server provides various SET
options that control the behavior of our session. These options can impact query execution and results. Also, some features in SQL Server rely on certain SET
options to be configured in a certain way (for example indexed views).
Getting the current SET
options configuration is not as straightforward as one might think. We need to do a bit of trickery.
Let’s look at how to view our current SET
options.