Database administration is not a strong point of mine, and I was wondering if a user with read only access can change the server settings.
In their query I can see this at the beginning:
SET ARITHABORT OFF
SET ANSI_WARNINGS OFF
I'm worried because we have been having SQL database deadlock issues and performance issue, and Microsoft say SET ARITHABORT OFF
should be SET ARITHABORT ON
Thanks.
Best Answer
Both the settings that you have mentioned in the question requires membership in public role, which is true in almost all the cases. You may refer below screenshot from the login window:
Kindly refer microsoft site for both of these as below:
https://docs.microsoft.com/en-us/sql/t-sql/statements/set-ansi-warnings-transact-sql?view=sql-server-2017
https://docs.microsoft.com/en-us/sql/t-sql/statements/set-arithabort-transact-sql?view=sql-server-2017
You may also refer article from Pinal Dave on this setting. There is another wonderful article from Mr. Ahmad Yaseen,
I hope above helps.