<?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>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: venkat</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-471978</link>
		<dc:creator><![CDATA[venkat]]></dc:creator>
		<pubDate>Thu, 09 May 2013 13:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-471978</guid>
		<description><![CDATA[if we set &#039; SET ANSI_NULLS ON&#039;

it doesn&#039;t give records that contains null values is it..?

for eg: select * from employee where emp_city= null 

The above query doesn&#039;t give any record is it but if i use &#039;is null&#039; in place of null i got the records that contain null values. Then tell me exactly what is the use of &#039;ANSI_NULL is set to ON&#039;]]></description>
		<content:encoded><![CDATA[<p>if we set &#8216; SET ANSI_NULLS ON&#8217;</p>
<p>it doesn&#8217;t give records that contains null values is it..?</p>
<p>for eg: select * from employee where emp_city= null </p>
<p>The above query doesn&#8217;t give any record is it but if i use &#8216;is null&#8217; in place of null i got the records that contain null values. Then tell me exactly what is the use of &#8216;ANSI_NULL is set to ON&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #019 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-434131</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #019 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 09 Mar 2013 01:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-434131</guid>
		<description><![CDATA[[...] QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation When creating or alter SQL object like Stored Procedure, User Defined Function in Query Analyzer, it is created with following SQL commands prefixed and suffixed. What are these – QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF? I explained the same in this blog post. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF Explanation When creating or alter SQL object like Stored Procedure, User Defined Function in Query Analyzer, it is created with following SQL commands prefixed and suffixed. What are these – QUOTED_IDENTIFIER ON/OFF and ANSI_NULL ON/OFF? I explained the same in this blog post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep R</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-429531</link>
		<dc:creator><![CDATA[Pradeep R]]></dc:creator>
		<pubDate>Fri, 01 Mar 2013 06:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-429531</guid>
		<description><![CDATA[Hi  iam a dot net fresher how i can improve my coding language for reference.]]></description>
		<content:encoded><![CDATA[<p>Hi  iam a dot net fresher how i can improve my coding language for reference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anuj Jain</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-341383</link>
		<dc:creator><![CDATA[Anuj Jain]]></dc:creator>
		<pubDate>Thu, 06 Sep 2012 07:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-341383</guid>
		<description><![CDATA[Nice post...............]]></description>
		<content:encoded><![CDATA[<p>Nice post&#8230;&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar Ali</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-339196</link>
		<dc:creator><![CDATA[Omar Ali]]></dc:creator>
		<pubDate>Thu, 30 Aug 2012 09:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-339196</guid>
		<description><![CDATA[Hi
See This

SET ANSI_NULLS ON
IF NULL = NULL
 PRINT &#039;same&#039;
ELSE
 PRINT &#039;different&#039;
--result:  different

SET ANSI_NULLS ON
IF NULL IS NULL
 PRINT &#039;same&#039;
ELSE
 PRINT &#039;different&#039;
-- result: same SET ANSI_NULLS OFF
IF NULL = NULL
 PRINT &#039;same&#039;
ELSE
 PRINT &#039;different&#039;


Thank you]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
See This</p>
<p>SET ANSI_NULLS ON<br />
IF NULL = NULL<br />
 PRINT &#8216;same&#8217;<br />
ELSE<br />
 PRINT &#8216;different&#8217;<br />
&#8211;result:  different</p>
<p>SET ANSI_NULLS ON<br />
IF NULL IS NULL<br />
 PRINT &#8216;same&#8217;<br />
ELSE<br />
 PRINT &#8216;different&#8217;<br />
&#8211; result: same SET ANSI_NULLS OFF<br />
IF NULL = NULL<br />
 PRINT &#8216;same&#8217;<br />
ELSE<br />
 PRINT &#8216;different&#8217;</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smriti</title>
		<link>http://blog.sqlauthority.com/2007/03/05/sql-server-quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-254066</link>
		<dc:creator><![CDATA[smriti]]></dc:creator>
		<pubDate>Sun, 19 Feb 2012 05:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/03/05/quoted_identifier-onoff-and-ansi_null-onoff-explanation/#comment-254066</guid>
		<description><![CDATA[Hi Pinal,

Could you please explain about set quoted identifier on/off with example?

Thank you]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Could you please explain about set quoted identifier on/off with example?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>
