Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ANSI_NULL.

 
   Database Help (Home) -> Server RSS
Next:  error message with sp_send_dbmail  
Author Message
Vinay

External


Since: Jul 15, 2008
Posts: 10



(Msg. 1) Posted: Mon Feb 09, 2009 2:33 pm
Post subject: ANSI_NULL.
Archived from groups: microsoft>public>sqlserver>server (more info?)

Hi Experts,

Two questions:

1. what is the default setting for SET ANSI NULL for all the sql
server(65,70,80,90,100)
2. How do I know the object(table) is created with which ANSINULL SETTING.
eg. i tried to create view on one of my table and then realize that it has
created with ansi_null off.

Please help.

Thanx.
Vinay
--
Thank you.
Regards,
Vinay Thakur

 >> Stay informed about: ANSI_NULL. 
Back to top
Login to vote
Daniel Jameson

External


Since: Jun 09, 2008
Posts: 45



(Msg. 2) Posted: Mon Feb 09, 2009 2:40 pm
Post subject: Re: ANSI_NULL. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Vinay,

While I don't know the defaults offhand, there is a "gotcha" in the concept
of a "default setting" for SET ANSI_NULLS.

1) There is the SQL Server default that is used if a connecting client does
not secify a preference for the setting, and
2) There is the default setting the client (e.g., Query Analyzer/SS
Management Studio) uses, and overrides the server's default.

If the setting is important, as it appears that it is to you, then you need
to make sure all you servers and clients are configured properly.

--
Thank you,

Daniel Jameson
SQL Server DBA
Children's Oncology Group
www.childrensoncologygroup.org


"Vinay" wrote in message

> Hi Experts,
>
> Two questions:
>
> 1. what is the default setting for SET ANSI NULL for all the sql
> server(65,70,80,90,100)
> 2. How do I know the object(table) is created with which ANSINULL
> SETTING.
> eg. i tried to create view on one of my table and then realize that it has
> created with ansi_null off.
>
> Please help.
>
> Thanx.
> Vinay
> --
> Thank you.
> Regards,
> Vinay Thakur

 >> Stay informed about: ANSI_NULL. 
Back to top
Login to vote
Kalen Delaney

External


Since: Oct 27, 2003
Posts: 290



(Msg. 3) Posted: Mon Feb 09, 2009 11:11 pm
Post subject: Re: ANSI_NULL. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

To see what setting your objects were created with, you can use the
OBJECTPROPERTY function.

SELECT OBJECTPROPERTY(object_id('your_object_name'), 'IsAnsiNullsOn')

Full details of OBJECTPROPERTY are in the Books Online.
--
HTH
Kalen Delaney, SQL Server MVP
www.InsideSQLServer.com
www.SQLTuners.com


"Vinay" wrote in message

> Hi Experts,
>
> Two questions:
>
> 1. what is the default setting for SET ANSI NULL for all the sql
> server(65,70,80,90,100)
> 2. How do I know the object(table) is created with which ANSINULL
> SETTING.
> eg. i tried to create view on one of my table and then realize that it has
> created with ansi_null off.
>
> Please help.
>
> Thanx.
> Vinay
> --
> Thank you.
> Regards,
> Vinay Thakur
 >> Stay informed about: ANSI_NULL. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Insert output of procedure inside table - Hello, Can you tell me how can i put the output if the procedure sp_helpdb inside one table? Thanks and best regards

SQL Agent won't start - Our installation of SQLServer 2000 has been working fine until last week when SQLAgent cannot start due to a login problem with SQLServer. SQLAgent properties have not changed since the problem began, but the event log reports that SQLAgent cannot log...

Format the column with - Hello, Can you tell me how can i format the column with in the output of a query? The results must be returned as text and my output is like this: y x -------------------- ----------------------- 1 2 the way im treating the output is to..

How to determine the Instance - Hello: <font color=purple> ; Would you mind to give me some hints that how can I determine how many</font> of instance on the SQL server? Thanks a lot!

How to tell which port -
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]