﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by lloyd monteiro  / Values &amp;lt;&amp;gt; null / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 23:07:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>select * from ##TableNulls where col2 is not null will give out the expected results at fist sightThank you for the question</description><pubDate>Wed, 21 Mar 2012 11:28:56 GMT</pubDate><dc:creator>IgorMi</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Interesting topic, yet confusing at times when determining times to set the ANSI_NULL to ON or OFF to yield expected results.  Thanks.</description><pubDate>Mon, 19 Mar 2012 10:00:15 GMT</pubDate><dc:creator>zymos</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>its all about the database setting  of  ANSI_NULLS Set ANSI_NULLS off / on But by default database settings for ANSI_NULLS is ON  so you will get nothing .</description><pubDate>Wed, 19 May 2010 06:56:58 GMT</pubDate><dc:creator>amit_adarsh</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Remember:Never assume anything because it can make a [b]donkey[/b] out of [b]u[/b] and [b]me[/b]Won't let me SUBSTRING('assume',1,3) :-D</description><pubDate>Mon, 17 May 2010 06:12:15 GMT</pubDate><dc:creator>John McC</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>yes actually i had that question with default settings in mind, but its good to see so many responses as i know it has actually set minds thinking and after all thats the objective.In future i will include things like this.</description><pubDate>Tue, 11 May 2010 01:05:19 GMT</pubDate><dc:creator>lloyd-236007</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Ahhhh...that's why you call us McNewbie's. :-) Great site, and great editorials. Look forward to seeing them every day.</description><pubDate>Mon, 10 May 2010 13:46:43 GMT</pubDate><dc:creator>sdorris-1150234</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>We can't edit the question in email. If we find an issue, it's corrected on the site.</description><pubDate>Mon, 10 May 2010 13:41:19 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>I was sure I had the correct answer based on the question in the email...but when I linked to the site I saw another question - "What is the output of this query if ANSI NULLS are set to ON?". Was this a side question, or part of the original question? At this point, I wasn't sure which one was the actual question, so I got it wrong. A bit confusing.</description><pubDate>Mon, 10 May 2010 13:38:27 GMT</pubDate><dc:creator>sdorris-1150234</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Nice question and thanks for updating it as well Steve.</description><pubDate>Mon, 10 May 2010 10:24:57 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>The question has been edited to include ANSI NULLS set on.</description><pubDate>Mon, 10 May 2010 10:00:13 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Good question but it is a variation on a theme we've had as QOD in the past.  I wish the Questioner would have included a few more details on Ansi NULL ON vs OFF.</description><pubDate>Mon, 10 May 2010 09:19:22 GMT</pubDate><dc:creator>Trey Staker</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>I love all these questions and discussions about so many of the smaller (but usually critical to understand) details.  They really make me think, and definitely make me better whether I got the question right or wrong.:-)</description><pubDate>Mon, 10 May 2010 08:09:39 GMT</pubDate><dc:creator>Daniel Bowlin</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>[quote]Atif Sheikh (5/9/2010)--------------------------------------------------------------------------------Set ANSI_NULLS off / on changes the results. By default in database settings it is set to OFF.But in SSMS --&amp;gt; Tools --&amp;gt; Options, go to Query Execution --&amp;gt; SQL Server --&amp;gt; ANSI Tab. Here it is set to On. Means, for the query editor window, settings is set to On BY DEFAULT.Bit Confusing. And I go the point.Ah true, I forgot about the different default settings between database and SSMS (or Query Analyzer for SQL2000). I stand corrected. [/quote]Thats what these questions are all about. Small things that slips from our minds...:-)</description><pubDate>Mon, 10 May 2010 06:36:19 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Since ANSI_NULLS affects the result, and since the default means we get the desired option - only those that simply input the query are going to be annoyed. Anyone that understood the question will have assumed default options were there and get the correct answer.</description><pubDate>Mon, 10 May 2010 06:08:36 GMT</pubDate><dc:creator>Cadavre</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>it's all depends on  ANSI_NULLS OFF/ON</description><pubDate>Mon, 10 May 2010 04:30:23 GMT</pubDate><dc:creator>sharath.chalamgari</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>The Result depends on set optionSET ANSI_NULLS OFFselect * from ##TableNulls where col2 &amp;lt;&amp;gt; null -- This will give ResultSET ANSI_NULLS ONselect * from ##TableNulls where col2 &amp;lt;&amp;gt; null --  this will not give result</description><pubDate>Mon, 10 May 2010 02:08:12 GMT</pubDate><dc:creator>deepak.a</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>I got it right as i knew that &amp;lt;&amp;gt; null doesn't work in that scenario, but if one would use 'is not null' instead of &amp;lt;&amp;gt; null, it would get the result. Regards,Mazhar Karimi</description><pubDate>Mon, 10 May 2010 00:47:48 GMT</pubDate><dc:creator>muhammad.mazhar</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>[quote][b]Atif Sheikh (5/9/2010)[/b][hr]Set ANSI_NULLS off / on changes the results. By default in database settings it is set to OFF.But in SSMS --&amp;gt; Tools --&amp;gt;  Options, go to Query Execution --&amp;gt; SQL Server --&amp;gt; ANSI Tab. Here it is set to On. Means, for the query editor window, settings is set to On BY DEFAULT.Bit Confusing. :-)And I go the point.[/quote]Ah true, I forgot about the different default settings between database and SSMS (or Query Analyzer for SQL2000). I stand corrected.</description><pubDate>Sun, 09 May 2010 23:14:32 GMT</pubDate><dc:creator>Iggy-SQL</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Set ANSI_NULLS off / on changes the results. By default in database settings it is set to OFF.But in SSMS --&amp;gt; Tools --&amp;gt;  Options, go to Query Execution --&amp;gt; SQL Server --&amp;gt; ANSI Tab. Here it is set to On. Means, for the query editor window, settings is set to On BY DEFAULT.Bit Confusing. :-)And I go the point.</description><pubDate>Sun, 09 May 2010 23:01:44 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>The result would depend on the database settings for ANSI_NULLS, if the database settings for ANSI_NULLS is set to ON, then the answer given is correct, but if it is set to OFF, then the answer given is incorrect (and A is the correct answer).Whilst I have answered correctly because I made a guess that the default database settings is used, some other users running the query might get the answer A if their database settings for ANSI_NULLS is OFF (with or without their knowledge).</description><pubDate>Sun, 09 May 2010 21:41:54 GMT</pubDate><dc:creator>Iggy-SQL</dc:creator></item><item><title>RE: Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>We can set ansi_nulls off then use &amp;lt;&amp;gt; ,=</description><pubDate>Sun, 09 May 2010 06:24:00 GMT</pubDate><dc:creator>Ali Asghar Sharifi</dc:creator></item><item><title>Values &amp;lt;&amp;gt; null</title><link>http://www.sqlservercentral.com/Forums/Topic918525-2694-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/69741/"&gt;Values &amp;lt;&amp;gt; null&lt;/A&gt;[/B]</description><pubDate>Sat, 08 May 2010 11:13:07 GMT</pubDate><dc:creator>lloyd-236007</dc:creator></item></channel></rss>