<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for Why doesn't this SQL work? (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/450287-why-doesnt-this-sql-work/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for Why doesn't this SQL work? (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/</link></image><description>Why doesn't this SQL work?</description><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/</link><language>en-us</language><pubDate>Fri, 02 Jan 2009 15:19:00 GMT</pubDate><lastBuildDate>Fri, 02 Jan 2009 15:19:00 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3599.6114, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Re: Why doesn't this SQL work?</title><description>Yeah... he's a source of unanswered questions. And now we are at a question without a question :D</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450926</link><pubDate>Fri, 02 Jan 2009 15:19:00 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450926</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450926/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Yeah... he's a source of unanswered questions. And now we are at a question without a question :D</evnet:previewtext><dc:creator>Christian Liensberger</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450926/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: Why doesn't this SQL work?</title><description>Duplicate.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450924</link><pubDate>Fri, 02 Jan 2009 15:04:11 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450924</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450924/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Duplicate.</evnet:previewtext><dc:creator>Tommy Carlier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450924/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: Why doesn't this SQL work?</title><description>[code language="sql"]SELECT * FROM sys.databases[/code]
Edit: it works when you put "sql" in lower case letters. Yay for case-sensitivity.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450923</link><pubDate>Fri, 02 Jan 2009 15:03:42 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450923</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450923/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>[code language="sql"]SELECT * FROM sys.databases[/code]
Edit: it works when you put "sql" in lower case letters. Yay for case-sensitivity.</evnet:previewtext><dc:creator>Tommy Carlier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450923/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Why doesn't this SQL work?</title><description>You can get SQL formatting like this: [ code language="SQL" ] code here [ /code ]&lt;BR&gt;Just remove the extra spaces around the [].&lt;BR&gt;&lt;BR&gt;EDIT: Ok, apparently that doesn't work. I know the code formatter they use supports SQL (since I wrote it :P ), but apparently C9 isn't exposing it.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450911</link><pubDate>Fri, 02 Jan 2009 13:59:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450911</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450911/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>You can get SQL formatting like this: [ code language="SQL" ] code here [ /code ]Just remove the extra spaces around the [].EDIT: Ok, apparently that doesn't work. I know the code formatter they use supports SQL (since I wrote it :P ), but apparently C9 isn't exposing it.</evnet:previewtext><dc:creator>Sven Groot</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450911/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Why doesn't this SQL work?</title><description>&lt;code&gt;DB_ID(N'IntranetApps')&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM sys.dm_db_index_physical_stats&lt;br /&gt;
(DB_ID(N'IntranetApps'), OBJECT_ID(N'...'), NULL, NULL, 'DETAILED')&lt;br /&gt;
GO&lt;/code&gt;
&lt;p&gt;where ... is the name of an object in his database.&lt;/p&gt;
&lt;p&gt;qwert231, check out example C in &lt;a href="http://msdn.microsoft.com/en-us/library/ms186274.aspx"&gt;DB_ID (Transact SQL) [MSDN]&lt;/a&gt;.&lt;/p&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450489</link><pubDate>Wed, 31 Dec 2008 06:29:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450489</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450489/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>DB_ID(N'IntranetApps')
GO

SELECT * FROM sys.dm_db_index_physical_stats
(DB_ID(N'IntranetApps'), OBJECT_ID(N'...'), NULL, NULL, 'DETAILED')
GO
where ... is the name of an object in his database.
qwert231, check out example C in DB_ID (Transact SQL) [MSDN].</evnet:previewtext><dc:creator>Joe Chung</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450489/Trackback.aspx</trackback:ping></item><item><title>Re: Why doesn't this SQL work?</title><description>&lt;blockquote&gt;&lt;div&gt;qwert231 said:&lt;/div&gt;&lt;div&gt;
&lt;DIV&gt;I'm not sure why this isn't working&lt;A href="http://farm4.static.flickr.com/3254/3147955221_e5b9d6dae7.jpg?v=0" rel=lightbox&gt;&lt;BR&gt;&lt;IMG src="http://farm4.static.flickr.com/3254/3147955221_e5b9d6dae7.jpg?v=0"&gt;&lt;/A&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;BR&gt;And I'm not sure why you posted this extremely small screenshot instead of copy'n'pasting the code as text. I tried text detection and sharpening&amp;nbsp;filters on the image and still couldn't read it.&lt;/DIV&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450488</link><pubDate>Wed, 31 Dec 2008 05:39:15 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450488</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450488/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>qwert231 said:
I'm not sure why this isn't workingAnd I'm not sure why you posted this extremely small screenshot instead of copy'n'pasting the code as text. I tried text detection and sharpening&amp;nbsp;filters on the image and still couldn't read it.</evnet:previewtext><dc:creator>Dorian Muthig</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450488/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Why doesn't this SQL work?</title><description>Hmm...Formatting is not what I expected (based on the preview), but hopefully you get the idea.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450318</link><pubDate>Tue, 30 Dec 2008 00:12:10 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450318</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450318/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hmm...Formatting is not what I expected (based on the preview), but hopefully you get the idea.</evnet:previewtext><dc:creator>dpratt71</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450318/Trackback.aspx</trackback:ping></item><item><title>Re: Why doesn't this SQL work?</title><description>It is a bit small, but the first couple lines appears to be:&lt;div&gt;&lt;br&gt;&lt;blockquote&gt;DB_ID(N'IntranetApps')&lt;/blockquote&gt;&lt;blockquote&gt;GO&lt;/blockquote&gt;&lt;blockquote&gt;&lt;br&gt;&lt;/blockquote&gt;What is this code supposed to be doing? My first guess was that you were trying to switch the connection's current database to "IntranetApps", which would look like this:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;blockquote&gt;USE IntranetApps&lt;/blockquote&gt;&lt;blockquote&gt;GO&lt;/blockquote&gt;&lt;blockquote&gt;&lt;br&gt;&lt;/blockquote&gt;But the rest of the code doesn't require that. Remove it?&lt;/div&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450317</link><pubDate>Tue, 30 Dec 2008 00:10:39 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450317</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450317/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>It is a bit small, but the first couple lines appears to be:DB_ID(N'IntranetApps')GOWhat is this code supposed to be doing? My first guess was that you were trying to switch the connection's current database to "IntranetApps", which would look like this:USE IntranetAppsGOBut the rest of the code doesn't require that. Remove it?</evnet:previewtext><dc:creator>dpratt71</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450317/Trackback.aspx</trackback:ping></item><item><title>Re: Why doesn't this SQL work?</title><description>Too small, unreadable.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450293</link><pubDate>Mon, 29 Dec 2008 22:51:01 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/450287-Why-doesnt-this-SQL-work/?CommentID=450293</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/450293/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Too small, unreadable.</evnet:previewtext><dc:creator>ZippyV</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/450293/Trackback.aspx</trackback:ping></item></channel></rss>