Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Session settings, Global change or not?

Author  Topic 

malakai
Starting Member

8 Posts

Posted - 2004-06-12 : 15:18:52
Are their any down sides to applying:
SET ARITHABORT ON
SET CONCAT_NULL_YIELDS_NULL ON
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET NUMERIC_ROUNDABORT OFF

at a Server level? (default connection options)?
What about at my data access layer, prefixing every SQL statement with the settings?

It seems Indexed Views are severely hindered w/o these, and that these settings only help SQL in it's query analysis. So what's the down side?

-frank o'connor

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-12 : 23:21:30
Most of these should be enforced in your standards for releasing stored procedures and code releases for the very fact that you cannot use indexed views and computed columns without these set correctly.

Depending how your environment is set up, you might also want to limit the use of counts with the SET NOCOUNT ON option also.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

malakai
Starting Member

8 Posts

Posted - 2004-06-12 : 23:40:52
Sounds good. I've always seen Enterprise manager script pre-pend this, I guess SQL Server doesn't use it as a default Connection option for backwards compatability. I'm going to start testing these settings on by default and make sure we're not acidentally dependent on one not being set.

Go to Top of Page
   

- Advertisement -