<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Question of the Day</title><link>http://sqlserver.ro/forums/17/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: 2006-04-07</title><link>http://sqlserver.ro/forums/thread/24.aspx</link><pubDate>Fri, 07 Apr 2006 11:30:20 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:24</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/24.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=17&amp;PostID=24</wfw:commentRss><description>&lt;P&gt;It depends on the case,&amp;nbsp;it&amp;nbsp;can be&amp;nbsp;a method, however&amp;nbsp;0 &amp;lt;&amp;gt; NULL, and &amp;lt;firstname xsi:nil="true"&amp;gt;&amp;lt;/firstname&amp;gt; is different from &amp;lt;fname&amp;gt;&amp;lt;/fname&amp;gt;.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: 2006-04-07</title><link>http://sqlserver.ro/forums/thread/23.aspx</link><pubDate>Fri, 07 Apr 2006 10:41:46 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:23</guid><dc:creator>Diana</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/23.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=17&amp;PostID=23</wfw:commentRss><description>&lt;br&gt;
...is it al right to specify an ISNULL function in the select list, for example:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  SELECT Col1, ISNULL(Col2, 0) FROM Tab1 &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  FOR XML AUTO, ELEMENTS&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT Col1, ISNULL(Col2, '') FROM Tab1 &lt;br&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  FOR XML AUTO, ELEMENTS&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ...the result for Col2 will look like &amp;lt;Col2&amp;gt;0&amp;lt;/Col2&amp;gt; or &amp;lt;Col2&amp;gt;&amp;lt;/Col2&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description></item><item><title>QOD 70-431 2006-04-07</title><link>http://sqlserver.ro/forums/thread/22.aspx</link><pubDate>Fri, 07 Apr 2006 09:04:44 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:22</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/22.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=17&amp;PostID=22</wfw:commentRss><description>&lt;P&gt;You have a FOR XML query using&amp;nbsp;ELEMENTS directive. You query&amp;nbsp; ignores columns having NULL value and you want to include them. What should you do ?&lt;/P&gt;
&lt;P&gt;&lt;A title="Use the XSINIL parameter. XSINIL specifies that an element that has an xsi:nil attribute set to True be created for NULL column values." href="#"&gt;Place the mouse cursor HERE for the answer&lt;/A&gt;&lt;/P&gt;</description></item></channel></rss>