Click here to Skip to main content
15,896,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
how to apply
VB
SET ARITHABORT OFF
SET ANSI_WARNINGS OFF

permanently?

when i executes these statements in sql server it gives result for current session only,
I want to work these statements permanently. How I should do this?

Thank you in Advance.
Posted

As far as I know, you can't "set it permanently", even on a database-by-database basis (certainly, the ALTER DATABASE statement doesn't list it as an option: http://msdn.microsoft.com/en-us/library/bb522682.aspx[^]) and you should definitly not try to set it for a SQL Server instance, as it will have a negative on performance for all databases, not just yours: http://msdn.microsoft.com/en-us/library/ms190306.aspx[^]

It's a connection based setting for a reason: it has a big impact on performance and shouldn't be set to OFF at all! :laugh:

Why not just check your values instead?
 
Share this answer
 
Comments
Sid_Joshi 15-Jan-15 7:20am    
Thank you for replay sir.
I think it's a useless feature.
OriginalGriff 15-Jan-15 7:27am    
It's not useless - but you have to be damn sure you need it!

(It's a bit like using ON ERROR RESUME NEXT in VB - it gets you past the immediate problem, but it generally makes things a lot more complex later on!)
You may set it in the ALTER DATABASE statement (see Technet: "ALTER DATABASE SET Options (Transact-SQL)"[^]).
 
Share this answer
 
Comments
Sid_Joshi 15-Jan-15 7:04am    
still It doesn't work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900