<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation</title>
	<atom:link href="http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:12:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Durga Prasad</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-187690</link>
		<dc:creator><![CDATA[Durga Prasad]]></dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-187690</guid>
		<description><![CDATA[Hi Please try this 

set ansi_nulls on

select * from myTab where [name] is null
we will see result with name value is null

select * from myTab where [name] = null
we will not any see result

set ansi_nulls off
select * from myTab where [name] is null
we will see result with name value is null

select * from myTab where [name] = null
we will see result with name value is null]]></description>
		<content:encoded><![CDATA[<p>Hi Please try this </p>
<p>set ansi_nulls on</p>
<p>select * from myTab where [name] is null<br />
we will see result with name value is null</p>
<p>select * from myTab where [name] = null<br />
we will not any see result</p>
<p>set ansi_nulls off<br />
select * from myTab where [name] is null<br />
we will see result with name value is null</p>
<p>select * from myTab where [name] = null<br />
we will see result with name value is null</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 8 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-146778</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 8 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Fri, 08 Jul 2011 01:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-146778</guid>
		<description><![CDATA[[...] When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks. When SET QUOTED_IDENTIFIER is OFF, identifiers cannot be quoted and must follow all T-SQL rules for identifiers. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks. When SET QUOTED_IDENTIFIER is OFF, identifiers cannot be quoted and must follow all T-SQL rules for identifiers. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorna</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-136605</link>
		<dc:creator><![CDATA[Lorna]]></dc:creator>
		<pubDate>Wed, 25 May 2011 13:34:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-136605</guid>
		<description><![CDATA[I have a client database in which I&#039;m trying to create an indexed view.  For unknown reasons one particular table has the Ansi_nulls property set to false!  How can this be updated.  SQL 2008 R2.
Any help would be greatly appreciated.

Lorna]]></description>
		<content:encoded><![CDATA[<p>I have a client database in which I&#8217;m trying to create an indexed view.  For unknown reasons one particular table has the Ansi_nulls property set to false!  How can this be updated.  SQL 2008 R2.<br />
Any help would be greatly appreciated.</p>
<p>Lorna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nasir</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-131453</link>
		<dc:creator><![CDATA[Nasir]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 10:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-131453</guid>
		<description><![CDATA[Hi

I am trying to create a stored procedure for SQL Server 2008 R2. I want this stored procedure to have uses_ansi_nulls as False.
My database&#039;s ANSI NULLS Enabled property is set to False.
I&#039;m creating procedure as below:

SET ANSI_NULLS ON
GO
CREATE PROCEDURE MY_SP

Procedure is created successfully but following query returns true.

SELECT uses_ansi_nulls, uses_quoted_identifier
 FROM sys.sql_modules
WHERE object_id = object_id(&#039;MY_SP&#039;)

Is there a way to  create stored procedure so that above query returns false (SET ANSI_NULLS remain false).]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am trying to create a stored procedure for SQL Server 2008 R2. I want this stored procedure to have uses_ansi_nulls as False.<br />
My database&#8217;s ANSI NULLS Enabled property is set to False.<br />
I&#8217;m creating procedure as below:</p>
<p>SET ANSI_NULLS ON<br />
GO<br />
CREATE PROCEDURE MY_SP</p>
<p>Procedure is created successfully but following query returns true.</p>
<p>SELECT uses_ansi_nulls, uses_quoted_identifier<br />
 FROM sys.sql_modules<br />
WHERE object_id = object_id(&#8216;MY_SP&#8217;)</p>
<p>Is there a way to  create stored procedure so that above query returns false (SET ANSI_NULLS remain false).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krish</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-125774</link>
		<dc:creator><![CDATA[Krish]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 11:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-125774</guid>
		<description><![CDATA[Sry wrong one from me

correction ROWCOUNT not @@ROW_COUNT]]></description>
		<content:encoded><![CDATA[<p>Sry wrong one from me</p>
<p>correction ROWCOUNT not @@ROW_COUNT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krish</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-125773</link>
		<dc:creator><![CDATA[Krish]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 11:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-125773</guid>
		<description><![CDATA[SET @@ROW_COUNT =1
THEN DELETE only one value will be deleted.
After that again SET @@ROW_COUNT =0]]></description>
		<content:encoded><![CDATA[<p>SET @@ROW_COUNT =1<br />
THEN DELETE only one value will be deleted.<br />
After that again SET @@ROW_COUNT =0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Pereira</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-96267</link>
		<dc:creator><![CDATA[Ricardo Pereira]]></dc:creator>
		<pubDate>Thu, 28 Oct 2010 09:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-96267</guid>
		<description><![CDATA[Did you find a solution for your problem? I&#039;m having the same problem with SQL 2008!

Can you help me?

Regards]]></description>
		<content:encoded><![CDATA[<p>Did you find a solution for your problem? I&#8217;m having the same problem with SQL 2008!</p>
<p>Can you help me?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: knuesql</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-95847</link>
		<dc:creator><![CDATA[knuesql]]></dc:creator>
		<pubDate>Tue, 26 Oct 2010 07:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-95847</guid>
		<description><![CDATA[Does anybody know how to suppress the &quot;SET ANSI_NULLS SET QUOTED_IDENTIFIER ON&quot; lines when I modify a stored procedure in Management Studio? Thanks!]]></description>
		<content:encoded><![CDATA[<p>Does anybody know how to suppress the &#8220;SET ANSI_NULLS SET QUOTED_IDENTIFIER ON&#8221; lines when I modify a stored procedure in Management Studio? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SAD</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-93223</link>
		<dc:creator><![CDATA[SAD]]></dc:creator>
		<pubDate>Fri, 15 Oct 2010 12:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-93223</guid>
		<description><![CDATA[HAI  genius,

How to remove duplicate records from a table?]]></description>
		<content:encoded><![CDATA[<p>HAI  genius,</p>
<p>How to remove duplicate records from a table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-85308</link>
		<dc:creator><![CDATA[Srinivas]]></dc:creator>
		<pubDate>Thu, 26 Aug 2010 07:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-85308</guid>
		<description><![CDATA[Good explanation]]></description>
		<content:encoded><![CDATA[<p>Good explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shilpa</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-84605</link>
		<dc:creator><![CDATA[Shilpa]]></dc:creator>
		<pubDate>Thu, 19 Aug 2010 06:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-84605</guid>
		<description><![CDATA[thanks 
Hariprasad

exact and accurate answer. thanks  again .!!]]></description>
		<content:encoded><![CDATA[<p>thanks<br />
Hariprasad</p>
<p>exact and accurate answer. thanks  again .!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sahayapraveen</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-81774</link>
		<dc:creator><![CDATA[sahayapraveen]]></dc:creator>
		<pubDate>Tue, 27 Jul 2010 05:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-81774</guid>
		<description><![CDATA[Thank you its very clear to understand]]></description>
		<content:encoded><![CDATA[<p>Thank you its very clear to understand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hariprasad</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-79941</link>
		<dc:creator><![CDATA[Hariprasad]]></dc:creator>
		<pubDate>Mon, 12 Jul 2010 18:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-79941</guid>
		<description><![CDATA[Hi Santosh,
        Sorry just saw your post. Setting ANSI_NULLS ON or OFF is used for selecting NULL values.

Eg.. in your case the select * from table irrespective of the ANSI flag will result in 
1 Steve
2 NULL
3 Mike
4 NULL

Try these two scenarios.
1.  SET ANSI_NULLS ON
select * from table where name = NULL
2. SET ANSI_NULLS OFF
select * from table where name = NULL

Now I am sure you will find the difference.. Let me know how are you getting on this. 

Cheers
Hari]]></description>
		<content:encoded><![CDATA[<p>Hi Santosh,<br />
        Sorry just saw your post. Setting ANSI_NULLS ON or OFF is used for selecting NULL values.</p>
<p>Eg.. in your case the select * from table irrespective of the ANSI flag will result in<br />
1 Steve<br />
2 NULL<br />
3 Mike<br />
4 NULL</p>
<p>Try these two scenarios.<br />
1.  SET ANSI_NULLS ON<br />
select * from table where name = NULL<br />
2. SET ANSI_NULLS OFF<br />
select * from table where name = NULL</p>
<p>Now I am sure you will find the difference.. Let me know how are you getting on this. </p>
<p>Cheers<br />
Hari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Santosh Gadila</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-75738</link>
		<dc:creator><![CDATA[Santosh Gadila]]></dc:creator>
		<pubDate>Sat, 12 Jun 2010 00:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-75738</guid>
		<description><![CDATA[hi HariPrasad,
I have created a table
the result set of SELECT * FROM table is as follows

1	Steve
2	NULL
3	Mike
4	NULL

When I used
SET ANSI_NULLS ON
select * from table 
the result set is same as the above.
--- But when I used
SET ANSI_NULLS ON
select Name from table where Name = NULL
It retrieves no result.
I did not understand why? there is nothing difference between setting the ANSI_NULLS ON and ANSI_NULLS OFF
in case of 
SET ANSI_NULLS ON
select * from table

and

SET ANSI_NULLS ON
select * from table 

Can u explain ?]]></description>
		<content:encoded><![CDATA[<p>hi HariPrasad,<br />
I have created a table<br />
the result set of SELECT * FROM table is as follows</p>
<p>1	Steve<br />
2	NULL<br />
3	Mike<br />
4	NULL</p>
<p>When I used<br />
SET ANSI_NULLS ON<br />
select * from table<br />
the result set is same as the above.<br />
&#8212; But when I used<br />
SET ANSI_NULLS ON<br />
select Name from table where Name = NULL<br />
It retrieves no result.<br />
I did not understand why? there is nothing difference between setting the ANSI_NULLS ON and ANSI_NULLS OFF<br />
in case of<br />
SET ANSI_NULLS ON<br />
select * from table</p>
<p>and</p>
<p>SET ANSI_NULLS ON<br />
select * from table </p>
<p>Can u explain ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hariprasad</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-71482</link>
		<dc:creator><![CDATA[Hariprasad]]></dc:creator>
		<pubDate>Tue, 18 May 2010 23:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-71482</guid>
		<description><![CDATA[SET ASNI_NULL ON
select * from table where col1 = NULL
select * from table where col1  NULL
both the cases result is 0 rows

SET ASNI_NULL OFF
select * from table where col1 = NULL
select * from table where col1  NULL
in one case definately you will get result

Hope this explanation helps. I found this from a forum and tried. I worked fine.  So why not you guys try.]]></description>
		<content:encoded><![CDATA[<p>SET ASNI_NULL ON<br />
select * from table where col1 = NULL<br />
select * from table where col1  NULL<br />
both the cases result is 0 rows</p>
<p>SET ASNI_NULL OFF<br />
select * from table where col1 = NULL<br />
select * from table where col1  NULL<br />
in one case definately you will get result</p>
<p>Hope this explanation helps. I found this from a forum and tried. I worked fine.  So why not you guys try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60672</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Thu, 04 Feb 2010 17:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60672</guid>
		<description><![CDATA[Hi,

To handle NULL value in calculation use ISNULL function. SET ANSI_NULLS affect the result of equal to (=) and not equal to () comparision with NULL value.

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>To handle NULL value in calculation use ISNULL function. SET ANSI_NULLS affect the result of equal to (=) and not equal to () comparision with NULL value.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vi</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60652</link>
		<dc:creator><![CDATA[vi]]></dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60652</guid>
		<description><![CDATA[Hi Pinal,
why do you know about null values dont work in SHAPE - APPEND - CALC. 

example; 
----------------------
shape 
   a_table...
            append a1_table bla bla... relation a to a1 ...
            append a2_table bla bla... relation a to a2 ...
compute
sum (a1_money) as a1m,
sum (a2_money) as a2m,
calc (a1m - a2m) as adiff
---------------------------

&quot;adiff&quot; is empty if &quot;a2m&quot; is null...

ANSI_NULL is not work in these query. 

do you have any solution ? 
please help me immediately.

thank you.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
why do you know about null values dont work in SHAPE &#8211; APPEND &#8211; CALC. </p>
<p>example;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
shape<br />
   a_table&#8230;<br />
            append a1_table bla bla&#8230; relation a to a1 &#8230;<br />
            append a2_table bla bla&#8230; relation a to a2 &#8230;<br />
compute<br />
sum (a1_money) as a1m,<br />
sum (a2_money) as a2m,<br />
calc (a1m &#8211; a2m) as adiff<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8220;adiff&#8221; is empty if &#8220;a2m&#8221; is null&#8230;</p>
<p>ANSI_NULL is not work in these query. </p>
<p>do you have any solution ?<br />
please help me immediately.</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Stock</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60518</link>
		<dc:creator><![CDATA[Jon Stock]]></dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-60518</guid>
		<description><![CDATA[When I run queries using sql 2005 the file output is encoded UCS-2, when I run the same query on my old desktop using sql 2000 the files are ANSI.  Same database, different desktop and different pcs.  I have set my file output to the normal defaults on the sql 2005 pc.  What am I missing?]]></description>
		<content:encoded><![CDATA[<p>When I run queries using sql 2005 the file output is encoded UCS-2, when I run the same query on my old desktop using sql 2000 the files are ANSI.  Same database, different desktop and different pcs.  I have set my file output to the normal defaults on the sql 2005 pc.  What am I missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawan Kumar</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-58261</link>
		<dc:creator><![CDATA[Pawan Kumar]]></dc:creator>
		<pubDate>Mon, 07 Dec 2009 06:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-58261</guid>
		<description><![CDATA[What are the advantages of SET QUOTED_IDENTIFIER ON,
SET ANSI_NULLS ON.

When we should make them on and Off.

Thnx

Pawan]]></description>
		<content:encoded><![CDATA[<p>What are the advantages of SET QUOTED_IDENTIFIER ON,<br />
SET ANSI_NULLS ON.</p>
<p>When we should make them on and Off.</p>
<p>Thnx</p>
<p>Pawan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gemini twin</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-56427</link>
		<dc:creator><![CDATA[gemini twin]]></dc:creator>
		<pubDate>Mon, 05 Oct 2009 09:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-56427</guid>
		<description><![CDATA[SQL SERVER – QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation: 

i am using SQL server 2005 
in affect to what is said about ANSI NULL ON   and 
QUOTED IDENTIFIER ON,
I do not get NULL if i place empty records in tables
instead only an empty space appears

please givme more details  on these]]></description>
		<content:encoded><![CDATA[<p>SQL SERVER – QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation: </p>
<p>i am using SQL server 2005<br />
in affect to what is said about ANSI NULL ON   and<br />
QUOTED IDENTIFIER ON,<br />
I do not get NULL if i place empty records in tables<br />
instead only an empty space appears</p>
<p>please givme more details  on these</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 4 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-47467</link>
		<dc:creator><![CDATA[SQL SERVER - 2008 - Interview Questions and Answers - Part 4 Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-47467</guid>
		<description><![CDATA[[...] When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks. When SET QUOTED_IDENTIFIER is OFF, identifiers cannot be quoted and must follow all Transact-SQL rules for identifiers. (Read More Here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] When SET QUOTED_IDENTIFIER is ON, identifiers can be delimited by double quotation marks, and literals must be delimited by single quotation marks. When SET QUOTED_IDENTIFIER is OFF, identifiers cannot be quoted and must follow all Transact-SQL rules for identifiers. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-47184</link>
		<dc:creator><![CDATA[SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-47184</guid>
		<description><![CDATA[[...] SQL SERVER - QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jyothi P</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-42864</link>
		<dc:creator><![CDATA[Jyothi P]]></dc:creator>
		<pubDate>Tue, 16 Sep 2008 19:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-42864</guid>
		<description><![CDATA[When SET ANSI_NULLS is ON, all comparisons against a null value evaluate to UNKNOWN. (FALSE)
When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to TRUE if the data value is NULL
 When SET ANSI_NULLS is ON, 

a SELECT statement using WHERE Emp_Name= NULL returns zero rows even if there are null values in Emp_Name.

 A SELECT statement using WHERE Emp_Name NULL returns zero rows even if there are nonnull values in Emp_Name.

When SET ANSI_NULLS is OFF, the Equals (=) and Not Equal To () comparison operators do not follow the SQL-92 standard. 

A SELECT statement using WHERE Emp_Name= NULL returns the rows with null values Emp_Name. 

A SELECT statement using WHERE Emp_Name NULL returns the rows with nonnull values in the column. 

SET ANSI_NULLS also must be ON  for executing distributed queries  and when creating or manipulating indexes on computed columns or indexed views.

 If SET ANSI_NULLS is OFF, CREATE, UPDATE, INSERT, and DELETE statements on tables with indexes on computed columns or indexed views will fail. SQL Server will return an error listing all SET options violating the required values.

When executing a SELECT statement, if SET ANSI_NULLS is OFF, SQL Server will ignore the index values on computed columns or views and resolve the select as though there were no such indexes on the tables or views.

If you want a script to work regardless of the ANSI NULSS database option or the setting of SET ANSI_NULLS, use IS NULL and IS NOT NULL in comparisons that may contain null values.]]></description>
		<content:encoded><![CDATA[<p>When SET ANSI_NULLS is ON, all comparisons against a null value evaluate to UNKNOWN. (FALSE)<br />
When SET ANSI_NULLS is OFF, comparisons of all data against a null value evaluate to TRUE if the data value is NULL<br />
 When SET ANSI_NULLS is ON, </p>
<p>a SELECT statement using WHERE Emp_Name= NULL returns zero rows even if there are null values in Emp_Name.</p>
<p> A SELECT statement using WHERE Emp_Name NULL returns zero rows even if there are nonnull values in Emp_Name.</p>
<p>When SET ANSI_NULLS is OFF, the Equals (=) and Not Equal To () comparison operators do not follow the SQL-92 standard. </p>
<p>A SELECT statement using WHERE Emp_Name= NULL returns the rows with null values Emp_Name. </p>
<p>A SELECT statement using WHERE Emp_Name NULL returns the rows with nonnull values in the column. </p>
<p>SET ANSI_NULLS also must be ON  for executing distributed queries  and when creating or manipulating indexes on computed columns or indexed views.</p>
<p> If SET ANSI_NULLS is OFF, CREATE, UPDATE, INSERT, and DELETE statements on tables with indexes on computed columns or indexed views will fail. SQL Server will return an error listing all SET options violating the required values.</p>
<p>When executing a SELECT statement, if SET ANSI_NULLS is OFF, SQL Server will ignore the index values on computed columns or views and resolve the select as though there were no such indexes on the tables or views.</p>
<p>If you want a script to work regardless of the ANSI NULSS database option or the setting of SET ANSI_NULLS, use IS NULL and IS NOT NULL in comparisons that may contain null values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harinath_hyd</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-33774</link>
		<dc:creator><![CDATA[Harinath_hyd]]></dc:creator>
		<pubDate>Fri, 15 Feb 2008 11:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-33774</guid>
		<description><![CDATA[Hi 
in a query set ansi_nulls on 
and select the null coulmn is gives null value
if set ansi_nulls off also behave same.
then how to  know diff between the ansi_nulls on and off
do mail to me.

Thank you]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
in a query set ansi_nulls on<br />
and select the null coulmn is gives null value<br />
if set ansi_nulls off also behave same.<br />
then how to  know diff between the ansi_nulls on and off<br />
do mail to me.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-18326</link>
		<dc:creator><![CDATA[Brian]]></dc:creator>
		<pubDate>Fri, 09 Nov 2007 16:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-18326</guid>
		<description><![CDATA[I&#039;m a SQL beginner, and this stuff drives me crazy. However, we&#039;ve using &quot;is null&quot; instead of &quot;= null&quot; and it seems to work regardless of the setting. Try this. This shows the difference between the two approaches:

set ansi_nulls on

declare @myTab table (id int null, [name] varchar(10) null)

insert into @myTab (id,[name]) values (1, &#039;sam&#039;)
insert into @myTab (id,[name]) values (2, &#039;dave&#039;)
insert into @myTab (id,[name]) values (3, null)

select * from @myTab
select * from @myTab where [name] is null
select * from @myTab where [name] = null]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m a SQL beginner, and this stuff drives me crazy. However, we&#8217;ve using &#8220;is null&#8221; instead of &#8220;= null&#8221; and it seems to work regardless of the setting. Try this. This shows the difference between the two approaches:</p>
<p>set ansi_nulls on</p>
<p>declare @myTab table (id int null, [name] varchar(10) null)</p>
<p>insert into @myTab (id,[name]) values (1, &#8216;sam&#8217;)<br />
insert into @myTab (id,[name]) values (2, &#8216;dave&#8217;)<br />
insert into @myTab (id,[name]) values (3, null)</p>
<p>select * from @myTab<br />
select * from @myTab where [name] is null<br />
select * from @myTab where [name] = null</p>
]]></content:encoded>
	</item>
</channel>
</rss>

