﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / why this condition fail (IF 1 &amp;lt;&amp;gt; 1) / 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>Wed, 19 Jun 2013 22:33:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>Thanks Gila</description><pubDate>Mon, 22 Oct 2012 23:33:11 GMT</pubDate><dc:creator>Celestial</dc:creator></item><item><title>RE: why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>I would guess because backup statements are checked for validity when they run. Two very different statements, you shouldn't be surprised they act differently (one's DDL the other maintenance)</description><pubDate>Mon, 22 Oct 2012 08:22:37 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>@GilaThen why this code be executed successfully.IF 1 &amp;lt;&amp;gt; 1BEGIN 	BACKUP DATABASE tempdb TO DISK ='D:\tempdb.bak'END</description><pubDate>Mon, 22 Oct 2012 07:32:03 GMT</pubDate><dc:creator>lionofdezert</dc:creator></item><item><title>RE: why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>If you really want, you can code it like that:[code="sql"]IF 1 &amp;lt;&amp;gt; 1BEGIN    EXEC ('ALTER DATABASE TempDB SET RECOVERY SIMPLE WITH NO_WAIT')END[/code]</description><pubDate>Mon, 22 Oct 2012 07:05:30 GMT</pubDate><dc:creator>Eugene Elutin</dc:creator></item><item><title>RE: why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>Because the validity of the statement is checked before it's actually run.</description><pubDate>Mon, 22 Oct 2012 06:50:56 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>why this condition fail (IF 1 &amp;lt;&amp;gt; 1)</title><link>http://www.sqlservercentral.com/Forums/Topic1375397-392-1.aspx</link><description>Hi,     I am confused about belwo statment.   Although, Recovery model of TempDB can’t be changed but Why this simple IF condition fails?IF 1 &amp;lt;&amp;gt; 1BEGIN       ALTER DATABASE TempDB SET RECOVERY SIMPLE WITH NO_WAITENDplease help me</description><pubDate>Mon, 22 Oct 2012 06:48:08 GMT</pubDate><dc:creator>Celestial</dc:creator></item></channel></rss>