<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/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>Brian Leary at myITforum.com</title><link>http://myitforum.com/cs2/blogs/bleary/default.aspx</link><description>I&amp;#39;m supposed to be playing guitar for a living...</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>MDOP Exam 70-656 Goes Live - with Charter Member Swag!</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/28/mdop-exam-70-656-goes-live-with-charter-member-swag.aspx</link><pubDate>Tue, 29 Jul 2008 03:17:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:120583</guid><dc:creator>bleary</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=120583</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/28/mdop-exam-70-656-goes-live-with-charter-member-swag.aspx#comments</comments><description>&lt;p&gt;Exam 70-656 for Microsoft Desktop Optimization Pack (MDOP) went live on June 19th.&amp;nbsp;The first 500 exam takers may take the exam for free by using the Prometric Promo Code &amp;quot;MDOP&amp;quot;, and the first 200 to pass the exam get a Charter Member jacket and glass award! If you are considering taking the exam, it consists of 75 questions,&amp;nbsp;is over three hours long, and I recommend that you&amp;nbsp;make sure that you&amp;nbsp;know each component of MDOP &lt;em&gt;&lt;u&gt;very&lt;/u&gt;&lt;/em&gt; well in order to pass the test. I took it last Saturday and&amp;nbsp;passed with a score of 748/700, so hopefully I am one of the first 200 so I get the cool swag!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mdopcharter.com/"&gt;http://www.mdopcharter.com/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=120583" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/MDOP/default.aspx">MDOP</category><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/MAV/default.aspx">MAV</category></item><item><title>Microsoft cracks down on certification exam cheating</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/09/microsoft-cracks-down-on-certification-exam-cheating.aspx</link><pubDate>Thu, 10 Jul 2008 02:36:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:119655</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=119655</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/09/microsoft-cracks-down-on-certification-exam-cheating.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m glad they are finally cracking down on this. If&amp;nbsp;anyone gets caught cheating on an exam, they&amp;nbsp;will be banned for life from taking any other Microsoft exams. Hopefully this will improve the integrity and credibility of Microsoft Certifications!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.networkworld.com/newsletters/edu/2008/070708ed1.html"&gt;http://www.networkworld.com/newsletters/edu/2008/070708ed1.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=119655" width="1" height="1"&gt;</description></item><item><title>Where the Hell is Matt?</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/08/where-the-hell-is-matt.aspx</link><pubDate>Wed, 09 Jul 2008 03:29:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:119568</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=119568</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2008/07/08/where-the-hell-is-matt.aspx#comments</comments><description>&lt;p&gt;This guy named Matt quit his job to film himself dancing in different locations&amp;nbsp;around the world. Stride Gum liked him so much they sponsored his second trip.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.stridegum.com/#/mattsplace/"&gt;http://www.stridegum.com/#/mattsplace/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=119568" width="1" height="1"&gt;</description></item><item><title>Hotfix Rollup 1 for Microsoft SoftGrid 4.2</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2008/01/02/hotfix-rollup-1-for-microsoft-softgrid-4-2.aspx</link><pubDate>Wed, 02 Jan 2008 21:33:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:111054</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=111054</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2008/01/02/hotfix-rollup-1-for-microsoft-softgrid-4-2.aspx#comments</comments><description>&lt;p&gt;Microsoft has released&amp;nbsp;the Hotfix Rollup Package 1 for SoftGrid 4.2, which&amp;nbsp;can be found at &lt;a href="http://support.microsoft.com/kb/941408"&gt;http://support.microsoft.com/kb/941408&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This cumulative update for SoftGrid v4.2 provides the latest updates to SoftGrid 4.2. In addition to stability improvements, this update contains the following changes: &lt;/p&gt;
&lt;p&gt;• Improvements to the package upgrade when you import upgraded sequencings into the SoftGrid Server Management Console snap-in. &lt;br /&gt;• Improvements to the package downgrade operation. &lt;br /&gt;• Improvements to nonpaged pool usage when you sequence large applications. &lt;br /&gt;• Improvements when you sequence applications that use both the Microsoft .NET Framework 1.1 and the .NET Framework 2.0. &lt;br /&gt;• Improvements to command-line parameter handling of virtualized child processes. &lt;/p&gt;
&lt;p&gt;New capabilities&lt;br /&gt;This update also provides the following new capabilities: &lt;/p&gt;
&lt;p&gt;• Support for the MSI Utility for Microsoft Application Virtualization. &lt;br /&gt;• Support for SoftGrid Server components that run under WOW64 in 64-bit versions of Windows. &lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=111054" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>SCCM 2007 Exam Study Guide - Question #1</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/11/14/sccm-2007-exam-study-guide-question-1.aspx</link><pubDate>Thu, 15 Nov 2007 06:42:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:108265</guid><dc:creator>bleary</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=108265</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/11/14/sccm-2007-exam-study-guide-question-1.aspx#comments</comments><description>&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Whenever a new software product comes out, I always have this impending dread about having to read&amp;nbsp;a bunch of documentation on it or waiting for a&amp;nbsp;decent book to be released on the subject so that I can pass the exam on it someday. Since I am already fairly entrenched in the &lt;a class="" title="SCCM 2007 Documentation Library" href="http://technet.microsoft.com/en-us/library/bb680651.aspx"&gt;SCCM 2007&amp;nbsp;Documentation&lt;/a&gt;, I am going to&amp;nbsp;save you some time and start sharing some of the key points of the product with all of you by writing up some sample exam questions that&amp;nbsp;can&amp;nbsp;help you to learn SCCM 2007. I will &lt;em&gt;try&lt;/em&gt; to release these questions on a fairly regular basis; mostly when I get a chance to come up for air from working my day job.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;strong&gt;&lt;u&gt;Question #1:&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Arthur is the IT Director for Contoso University. Arthur has submitted a requisition to the university for a licensed copy of Systems Center Configuration Manager 2007 which he expects to have approved and delivered within a month. In the interim, he directs his staff to implement the 120-day Evaluation Edition of Systems Center Configuration Manager 2007 in the production environment with the expectation of converting it to a licensed copy when his requisition is filled and he receives the license key. During this time, the IT department becomes heavily dependent on the software distribution and Remote Assistance features of Systems Center Configuration Manager 2007. The university is now 119 days into the 120 day evaluation period, and due to the bureaucracy of the university Arthur still does not have a licensed copy of SCCM. Arthur manages to acquire a pirated license key for Systems Center Configuration Manager 2007 from the internet and directs his staff to use the key to license the evaluation edition until they can get the requisition through for the university&amp;#39;s copy of the software. Somehow, Microsoft gains knowledge of Contoso University&amp;#39;s illegal copy of Systems Center Configuration Manager 2007 and reports the university to the Federal Bureau of Investigation. The FBI descends on the campus and arrests Arthur for piracy. While he is detained and awaiting trial, Arthur&amp;#39;s goldfish dies in his office due to neglect. How many years will Arthur spend in prison for pirating Microsoft software? &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;A. Pirating Microsoft software hurts everyone, so it is a major felony. Arthur is looking at 15-20 years.&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;B. Pirating Microsoft software is a misdemeanor. Arthur will only spend 1 year in prison, but his wife will fall in love with the gardener and leave him during this time. &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;C. Arthur will be acquitted because he had submitted a requisition for the software and had made an attempt to obtain a licensed copy. &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;D. This is a white collar crime, so Arthur will only spend 2 months in a minimum security prison and then be under house arrest for a month. &lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="section1" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;E. Since the early 1700’s, piracy has always been punishable by hanging. Arthur will be shipped off to a country where cruel and unusual punishment is a legal and acceptable means of dispensing justice and he will be hung by the neck until his lifeless body is forever still.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;Answer:&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;The answer is... well, it depends. It depends on the mood of the judge during Arthur&amp;#39;s trial and how good of an attorney Arthur can afford. If any members of the presiding jury have been recent victims of software piracy, then it will not bode well for our hero either. What we can learn from this cautionary tale&amp;nbsp; (besides the obvious - don&amp;#39;t pirate software) is that the Evaluation Edition of Systems Center Configuration Manager 2007 can be upgraded to the full version once you have a valid key for the product. You would do this by re-running the SCCM 2007 setup program of the evaluation edition. Another important point is that you cannot upgrade SMS 2003 to the evaluation edition of SCCM 2007. If you try to do this, the option for upgrading the site will be grayed out. For more info: &lt;a href="http://technet.microsoft.com/en-us/library/bb693584.aspx"&gt;http://technet.microsoft.com/en-us/library/bb693584.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;font face="Times New Roman" size="3"&gt;**DISCLAIMER: In case some of you might&amp;nbsp;have been fooled, these are not actual SCCM exam questions or braindumps. Like, you didn&amp;#39;t really think that this was a real question, did you? These are&amp;nbsp;just some questions I made up for your amusement and to help you learn some stuff about SCCM in the process. Also, Microsoft is (hopefully) not as Draconian as they are portrayed in this sample question. I mean, this is not the RIAA we are talking about here cracking down on someone&amp;#39;s dead grandmother for illegal hip-hop MP3&amp;#39;s...&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=108265" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SCCM+2007/default.aspx">SCCM 2007</category><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SCCM+2007+Exam+Study+Guide/default.aspx">SCCM 2007 Exam Study Guide</category></item><item><title>Upcoming SCCM 2007 Webcasts for October 2007</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/21/upcoming-sccm-2007-webcasts-for-october-2007.aspx</link><pubDate>Fri, 21 Sep 2007 17:16:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:105986</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=105986</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/21/upcoming-sccm-2007-webcasts-for-october-2007.aspx#comments</comments><description>&lt;div class="eventList"&gt;
&lt;p class="wcDescBullet"&gt;Here a some&amp;nbsp;upcoming SCCM 2007 webcasts&amp;nbsp;from Microsoft&amp;nbsp;during the month of October:&lt;/p&gt;
&lt;p class="wcDescBullet"&gt;&lt;b&gt;&lt;a class="stdLink" href="http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032352691&amp;amp;EventCategory=4&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;TechNet Webcast: Overview of System Center Configuration Manager 2007 (Level 300)&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class="airDate"&gt;&lt;b&gt;Monday, October 1, 2007&lt;/b&gt;&lt;/p&gt;
&lt;p class="startTime"&gt;&lt;i&gt;11:30 A.M.–12:30 P.M.&amp;nbsp;Pacific Time&lt;/i&gt;&lt;/p&gt;&lt;/div&gt;
&lt;div class="eventList"&gt;
&lt;p class="wcDescBullet"&gt;&lt;b&gt;&lt;a class="stdLink" href="http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032352695&amp;amp;EventCategory=4&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;TechNet Webcast: Deploying Operating Systems with System Center Configuration Manager 2007 (Level 300)&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class="airDate"&gt;&lt;b&gt;Friday, October 5, 2007&lt;/b&gt;&lt;/p&gt;
&lt;p class="startTime"&gt;&lt;i&gt;11:30 A.M.–12:30 P.M.&amp;nbsp;Pacific Time&lt;/i&gt;&lt;/p&gt;&lt;/div&gt;
&lt;div class="eventList"&gt;
&lt;p class="wcDescBullet"&gt;&lt;b&gt;&lt;a class="stdLink" href="http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032352705&amp;amp;EventCategory=4&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;TechNet Webcast: Desired Configuration Management in Systems Center Configuration Manager 2007 (Level 300)&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p class="airDate"&gt;&lt;b&gt;Tuesday, October 16, 2007&lt;/b&gt;&lt;/p&gt;
&lt;p class="startTime"&gt;&lt;i&gt;1:00 P.M.–2:00 P.M.&amp;nbsp;Pacific Time&lt;/i&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=105986" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SCCM/default.aspx">SCCM</category></item><item><title>Talk Like A Pirate Day</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/19/talk-like-a-pirate-day.aspx</link><pubDate>Wed, 19 Sep 2007 11:53:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:105896</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=105896</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/19/talk-like-a-pirate-day.aspx#comments</comments><description>&lt;p&gt;ARRRGHHHH, ye Mateys! It be Talk Like A Pirate Day! Here be a list of Pirate phrases so you know how to talk to your fellow scurvy curs:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://talklikeapirateday.com/wiki/index.php?page=PiratePhrases"&gt;http://talklikeapirateday.com/wiki/index.php?page=PiratePhrases&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;**UPDATED: Avast, the Talk like A Pirate Day website I linked to has been scuttled! Go on over and check out this other site instead: &lt;a href="http://talklikeapirate.com/piratehome.html"&gt;http://talklikeapirate.com/piratehome.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what&amp;#39;s left of the other site:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Due to the extremeley high load, we had to take the site down. We have several paying customers and their interests had to come first. I&amp;#39;m really sorry, next year I will definitely have a bigger server.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://talklikeapirate.com/"&gt;The Official Talk Like a Pirate&lt;/a&gt; website might still be running (although their Pirate Translator is a bit crap).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.google.com/search?q=talk+like+a+pirate+day"&gt;Here&amp;#39;s a search of Google for Talk Like a Pirate&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Seriously, I had no idea this website was going to be so popular! Thanks again to everyone who visited.&lt;/p&gt;
&lt;p&gt;Happy Talk Like a Pirate Day,&lt;br /&gt;&lt;a href="mailto:salty@talklikeapirateday.com"&gt;Old Salty Dog&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=105896" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Miscellaneous/default.aspx">Miscellaneous</category></item><item><title>SCCM 2007 Webcasts and Virtual Labs</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/04/sccm-2007-webcasts-and-virtual-labs.aspx</link><pubDate>Tue, 04 Sep 2007 20:01:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:105464</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=105464</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/09/04/sccm-2007-webcasts-and-virtual-labs.aspx#comments</comments><description>&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:Verdana;"&gt;The on-demand SCCM 2007 webcasts can be tricky to find on the Microsoft site as there isn&amp;#39;t a search category for SCCM yet, so here&amp;#39;s a handy list of what&amp;#39;s available. I also included links to the SCCM Virtual Labs.&amp;nbsp; &lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:Verdana;"&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032341256&amp;amp;culture=en-US"&gt;TechNet Webcast: Introduction to System Center Configuration Manager 2007 (Level 200)&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032343569&amp;amp;culture=en-US"&gt;TechNet Webcast: Deploying System Center Configuration Manager 2007 (Level 200)&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032343642&amp;amp;culture=en-US"&gt;TechNet Webcast: Deploying System Center Configuration Manager 2007 Clients (Level 300)&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032348275&amp;amp;culture=en-US"&gt;TechNet Webcast: New License Options for System Center Configuration Manager 2007 (Level 100)&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a title="blocked::https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032345483&amp;amp;EventCategory=3&amp;amp;culture=en-US&amp;amp;CountryCode=US" href="https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032345483&amp;amp;EventCategory=3&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;TechNet Webcast: Microsoft System Center Configuration Manager 2007: Deployment (Level 300)&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a title="blocked::https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032345476&amp;amp;EventCategory=3&amp;amp;culture=en-US&amp;amp;CountryCode=US" href="https://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032345476&amp;amp;EventCategory=3&amp;amp;culture=en-US&amp;amp;CountryCode=US"&gt;TechNet Webcast: Microsoft System Center Configuration Manager 2007: Managing Servers (Level 300)&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032347809&amp;amp;culture=en-US"&gt;TechNet Webcast: Managing Distributed Branch Office Environments with System Center and Windows Server 2008 (Level 300)&lt;/a&gt;&lt;/strong&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032343963&amp;amp;culture=en-US"&gt;TechNet Virtual Lab: Introduction to System Center Configuration Manager (SCCM) 2007 &lt;/a&gt;&lt;/strong&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032346653&amp;amp;culture=en-US"&gt;TechNet Virtual Lab: Upgrading from Microsoft Systems Management Server 2003 to System Center Configuration Manager 2007&lt;/a&gt;&lt;/strong&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;/span&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=105464" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SCCM/default.aspx">SCCM</category></item><item><title>SoftGrid Sequencing Training Videos</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/19/softgrid-sequencing-training-videos.aspx</link><pubDate>Tue, 19 Jun 2007 16:54:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:103500</guid><dc:creator>bleary</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=103500</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/19/softgrid-sequencing-training-videos.aspx#comments</comments><description>&lt;p&gt;I found some good online videos for learning how to sequence applications in SoftGrid. They were created by Tim Mangan, who used to work at Softricity and he created the original training program for sequencing apps.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.tmurgent.com/VideoSeries.aspx?FolderOffset=\Videos\Sequencing%20With%20Tim%20Mangan\"&gt;http://www.tmurgent.com/VideoSeries.aspx?FolderOffset=\Videos\Sequencing%20With%20Tim%20Mangan\&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=103500" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>The 20 Commandments of Software Packaging</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/18/the-20-commandments-of-software-packaging.aspx</link><pubDate>Mon, 18 Jun 2007 15:41:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:103442</guid><dc:creator>bleary</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=103442</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/18/the-20-commandments-of-software-packaging.aspx#comments</comments><description>&lt;p&gt;One of my fellow consultants (thanks Erik!) pointed this white paper out to me the other day. A lot of the information&amp;nbsp;is specific to&amp;nbsp;AdminStudio, but even if you don&amp;#39;t use that product it still has some good guidelines for packaging. You will need to fill out a registration&amp;nbsp;form on the Macrovision website in order to download the white paper.&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="The 20 Commandments of Software Packaging" href="http://mktg.macrovision.com/mk/submit/mvsn_submit?_JS=t&amp;amp;pcode=as&amp;amp;pver=ADTUN700E&amp;amp;lead_source=White%20Paper-as7_20com&amp;amp;target=/isas/whitepapers/as7_20Commandments.pdf&amp;amp;dname=The%2020%20Commandments%20of%20Software%20Packaging"&gt;The 20 Commandments of Software Packaging&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=103442" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Packaging/default.aspx">Packaging</category></item><item><title>Eddie Van Halen Frankenstein Guitar</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/13/eddie-van-halen-frankenstein-guitar.aspx</link><pubDate>Wed, 13 Jun 2007 14:45:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:103277</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=103277</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/13/eddie-van-halen-frankenstein-guitar.aspx#comments</comments><description>&lt;p&gt;Guitar Center is taking pre-orders for replicas of &lt;a class="" title="EVH Frankenstein" href="http://www.guitarcenter.com/shop/product/EVH-Eddie-Van-Halen-Frankenstein-Replica-Electric-Guitar?full_sku=104226733" target="_blank"&gt;Eddie Van Halen&amp;#39;s Frankenstein guitar&lt;/a&gt; - yours for only $25,000! They detailed it down to every cigarette burn, scratch, and worn spot, and even screwed a quarter onto the guitar just like Eddie did. That&amp;#39;s an awful lot of money for something that&amp;#39;s all beat up; I&amp;#39;m thinking I could do close to the same thing with a Dremel and a blowtorch!&lt;/p&gt;
&lt;p&gt;&lt;img title="EVH Pic" style="WIDTH:460px;HEIGHT:627px;" height="627" alt="EVH Pic" src="http://img3.guitarcenter.com/dbase/pics/products/6/2/0/483620.jpg" width="460" align="left" /&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=103277" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Miscellaneous/default.aspx">Miscellaneous</category></item><item><title>SoftGrid 4.2 Tech Preview Now Available! </title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/01/softgrid-4-2-tech-preview-now-available.aspx</link><pubDate>Fri, 01 Jun 2007 20:18:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102786</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102786</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/06/01/softgrid-4-2-tech-preview-now-available.aspx#comments</comments><description>&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Microsoft is pleased to announce the immediate availability of the Technical Preview for Microsoft SoftGrid Application Virtualization 4.2.&lt;span style="mso-spacerun:yes;"&gt; &lt;/span&gt;This evolutionary release contains several updates, including Windows Vista compatibility, support for sequencing Side-by-Side (SxS) applications (such as Office 2007, Visual Studio Express and more), and bug fixes since the 4.1 release. This Technical Preview includes the Microsoft SoftGrid Client&lt;span style="mso-spacerun:yes;"&gt; &lt;/span&gt;for Desktops and the System Center Sequencer. &lt;/font&gt;&lt;/font&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;To test this preview, the&amp;nbsp;administrator will need a SoftGrid 4.1 or later server on the test network&amp;nbsp;(available from MVLS).&lt;/span&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;As a reminder, the Tech Preview is a non-supported release and cannot be&amp;nbsp;used in a production environment.&amp;nbsp;Microsoft recommends updating to the full production version of 4.2 once it becomes available in July 2007 as part of the Microsoft Desktop Optimization&amp;nbsp;Pack for SA 2007 release.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Please visit the Microsoft Connect site at&amp;nbsp;&lt;a href="http://connect.microsoft.com/"&gt;http://connect.microsoft.com&lt;/a&gt; to gain access to the Technical Preview.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;Sign in with your Microsoft Windows Live ID and then&amp;nbsp;click on &amp;quot;Available Connections&amp;quot; in the left pane. You will see &amp;quot;SoftGrid 4.2 Tech Preview&amp;quot; in the list. Click &amp;quot;Apply&amp;quot; and follow the directions and answer the survey questions&amp;nbsp;to arrive at the SoftGrid welcome page. At this point, click on the &amp;quot;Downloads&amp;quot; link in the left pane and you will see the Tech Preview download.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;/span&gt;Microsoft has also provided a feedback channel through the Microsoft Connect site. Click on the &amp;quot;Feedback&amp;quot; link in the left pane to access the feedback section and then click the green &amp;quot;submit feedback&amp;quot; button to send any issues you are seeing with the Technical Preview. This feedback helps Microsoft to better determine the future directions for the Microsoft SoftGrid platform. However, since this is not a supported release, Microsoft will not be able to respond to the submissions.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:9.5pt;COLOR:black;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Source: &lt;a class="" title="The SoftGrid Team Blog" href="https://blogs.technet.com/softgrid/archive/2007/06/01/softgrid-4-2-tech-preview-now-available.aspx"&gt;The Softgrid Team Blog&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102786" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>Windows Server 2003 SP2 and the Non-existent SoftGrid Management Console</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/28/windows-server-2003-sp2-and-the-non-existent-softgrid-management-console.aspx</link><pubDate>Tue, 29 May 2007 04:40:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102642</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102642</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/28/windows-server-2003-sp2-and-the-non-existent-softgrid-management-console.aspx#comments</comments><description>&lt;p&gt;I ran into an issue tonight when I was trying to build a Softgrid demo. I loaded up a VM Workstation with Windows Server 2003 with SP2, but when I ran the Softgrid install, it did not install the Softgrid Management Console. After doing some searching on the web, I found an article on &lt;a class="" title="The Softgrid Team Blog" href="http://blogs.technet.com/softgrid/archive/2007/03/28/softgrid-management-console-won-t-install-on-windows-server-2003-with-sp2.aspx"&gt;The Softgrid Team Blog&lt;/a&gt;&amp;nbsp;that addressed the issue, and the comments were especially helpful. The problem stems from the Softgrid Management Console requiring MMC 3.0, which is already included in SP2 for Windows Server 2003 and the&amp;nbsp;Softgrid installation does not properly detect that it&amp;#39;s already there. This is supposed to be fixed in SP1 for Softgrid 4.1 which is due out Q2 of 2007. So until then, you&amp;nbsp;either need to&amp;nbsp;just manage your Softgrid server from a workstation, or you can edit the MSI with Orca to make it properly detect MMC 3.0, which I will walk you through in this article.&lt;/p&gt;
&lt;p&gt;Orca comes with the Microsoft Windows SDK, which you can download from &lt;a class="" title="Microsoft Windows SDK" href="http://msdn2.microsoft.com/en-us/library/aa370834.aspx"&gt;here&lt;/a&gt;&amp;nbsp;if you don&amp;#39;t have it already. Once you get it installed, make a copy of \Installers\Server\Softgrid Virtual Application Server.msi from the Softgrid source files because if we&amp;#39;re going to do an edit on a file, we&amp;#39;re going to do it on the copy, right? &lt;img src="http://myitforum.com/cs2/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;p&gt;Once the file is open, you will see the table in the MSI listed on the left. Click on the Condition table and the Release_SoftGrid_Management_Console condition&amp;nbsp;will be displayed on the right-hand pane. Notice that the value for this condition is&amp;nbsp;((VersionNT = 501 And ServicePackLevel = 2) Or (VersionNT = 502 And ServicePackLevel = 1)); you need to click on it and&amp;nbsp;add a greater than sign to the end like this:&amp;nbsp;&amp;gt;= 1)). Here&amp;#39;s a screen shot of what it should look like:&lt;/p&gt;
&lt;p&gt;&lt;img title="Softgrid Orca Edit" style="WIDTH:900px;HEIGHT:226px;" height="226" alt="Softgrid Orca Edit" src="http://myitforum.com/cs2/photos/bleary/images/102644/original.aspx" width="900" align="left" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now save the file and close Orca, and when you run the Softgrid install it will include the Softgrid Management Console as it will evaluate SP2 as greater than or equal to SP1.&lt;/p&gt;
&lt;p&gt;Source: &lt;a class="" title="The Softgrid Team Blog" href="http://blogs.technet.com/softgrid/archive/2007/03/28/softgrid-management-console-won-t-install-on-windows-server-2003-with-sp2.aspx"&gt;The Softgrid Team Blog&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102642" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>Forza Motorsport 2 - Released Tuesday 5/29!</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/28/forza-motorsport-2-released-tuesday-5-29.aspx</link><pubDate>Tue, 29 May 2007 04:30:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102640</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102640</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/28/forza-motorsport-2-released-tuesday-5-29.aspx#comments</comments><description>&lt;p&gt;Forza Motorsport 2 comes out Tuesday for the Xbox 360. Although I typically go for the arcade racers, I may end up picking this one up since it looks really cool. I&amp;#39;m not very good at the realistic racing games, and I usually rely on the guardrails to keep me on the track. This also crosses over into real life, where I like to bowl with the gutter guards in place. &lt;img src="http://myitforum.com/cs2/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.microsoft.com/presspass/press/2007/may07/05-25ForzaMotorsport2PR.mspx"&gt;http://www.microsoft.com/presspass/press/2007/may07/05-25ForzaMotorsport2PR.mspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102640" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/XBOX/default.aspx">XBOX</category></item><item><title>SMS 2003 SP3 Documentation</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/24/sms-2003-sp3-documentation.aspx</link><pubDate>Thu, 24 May 2007 15:12:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102549</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102549</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/24/sms-2003-sp3-documentation.aspx#comments</comments><description>&lt;p&gt;I noticed today that the documentation for SMS 2003 SP3 is finally up on the SMS product documentation site. They have also recently uploaded the SMS 2003 Asset Intelligence Help file as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.microsoft.com/technet/sms/2003/library/proddocs.mspx"&gt;http://www.microsoft.com/technet/sms/2003/library/proddocs.mspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102549" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SMS+2003/default.aspx">SMS 2003</category></item><item><title>Integrate SMS 2003 with SoftGrid Step by Step Guide</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/23/integrate-sms-2003-with-softgrid-step-by-step-guide.aspx</link><pubDate>Wed, 23 May 2007 16:32:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102518</guid><dc:creator>bleary</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102518</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/23/integrate-sms-2003-with-softgrid-step-by-step-guide.aspx#comments</comments><description>&lt;p&gt;Daniel Lai has published a step by step guide on his blog to setting up Softgrid&amp;nbsp;to integrate with&amp;nbsp;SMS.&amp;nbsp;He explains how to install the SMS connector also known as the&amp;nbsp;&amp;quot;Softricity Softgrid for Microsoft Systems Center&amp;quot; and configure it in SMS. The end result is that you can use the existing SMS infrastructure to&amp;nbsp;push out Softgrid virtualized applications.&amp;nbsp;Very cool...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msmvps.com/blogs/daniel/archive/2007/05/22/integrate-sms-2003-with-softgrid-step-by-step-guide-released.aspx"&gt;http://msmvps.com/blogs/daniel/archive/2007/05/22/integrate-sms-2003-with-softgrid-step-by-step-guide-released.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102518" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>Best practices to use for sequencing in Microsoft SoftGrid</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/22/best-practices-to-use-for-sequencing-in-microsoft-softgrid.aspx</link><pubDate>Tue, 22 May 2007 22:43:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102489</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102489</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/22/best-practices-to-use-for-sequencing-in-microsoft-softgrid.aspx#comments</comments><description>&lt;p&gt;I recently passed the online Softgrid Exam and I ran across this Best Practices article when I was researching the study materials.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/932137/en-us"&gt;http://support.microsoft.com/kb/932137/en-us&lt;/a&gt;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102489" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SoftGrid/default.aspx">SoftGrid</category></item><item><title>Halo 3 Beta</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/17/halo-3-beta.aspx</link><pubDate>Thu, 17 May 2007 16:24:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:102326</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=102326</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/17/halo-3-beta.aspx#comments</comments><description>&lt;p&gt;I&amp;#39;m out traveling this week, but my son texted me and said that the Halo 3 beta came out last night. I won&amp;#39;t be able to play it until this weekend, but it sounds really cool!&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=102326" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/XBOX/default.aspx">XBOX</category></item><item><title>SP2 Schema Update Not Included in SP3</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/08/sp2-schema-update-not-included-in-sp3.aspx</link><pubDate>Tue, 08 May 2007 21:12:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:101949</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=101949</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/05/08/sp2-schema-update-not-included-in-sp3.aspx#comments</comments><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;I haven&amp;#39;t seen anything in the SMS 2003 SP3 documentation that states that you must have SP2 installed before you install SP3, so I decided to try it in a VM running SMS 2003 SP1 to see if it would upgrade. The install proceeded without any complaints or warnings, and everything seemed to be fine. However, when I checked the AD schema to make sure that it included the dNSHostName schema extension that was added in SP2, it wasn&amp;#39;t there. Here&amp;#39;s the screenshot from Schema Admin after upgrading SP3 from SP1:&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;img title="Schema Attributes - No Extension" style="WIDTH:388px;HEIGHT:425px;" height="425" alt="Schema Attributes - No Extension" src="http://myitforum.com/cs2/photos/bleary/images/101946/388x425.aspx" width="388" /&gt;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;…and this is what it &lt;i style="mso-bidi-font-style:normal;"&gt;should&lt;/i&gt; look like with the schema extension that was originally released with SP2:&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;img title="Schema Attributes - With Extension" style="WIDTH:382px;HEIGHT:425px;" height="425" alt="Schema Attributes - With Extension" src="http://myitforum.com/cs2/photos/bleary/images/101947/382x425.aspx" width="382" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Next, I checked the SMSSETUP.LOG file and it did not mention attempting to perform any schema updates. &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;I decided to manually extend the schema by running extadsch.exe from the \smssetup\bin\i386 folder from the expanded SP3 files and it updated the schema like it was supposed to. I expected that this would have been something that was done automatically as it was in SP2, or at least some communication somewhere to tell you to do this if you’re not upgrading from SP2.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;Usually service pack releases have all the previous features and patches rolled into them but apparently this one got missed. &lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;So for best practices, either make sure that you have SP2 installed before you install SP3 or run extadsch.exe from the \smssetup\bin\i386 directory to manually extend the schema. I have already reported this issue&amp;nbsp;to Microsoft.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Special thanks to my co-workers John Stafford for helping me to investigate this issue and to Anthony Puca for leading me to try this out in the first place.&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=101949" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SMS+2003/default.aspx">SMS 2003</category></item><item><title>My New Job at EMC</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/30/my-new-job-at-emc.aspx</link><pubDate>Tue, 01 May 2007 02:35:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:101634</guid><dc:creator>bleary</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=101634</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/30/my-new-job-at-emc.aspx#comments</comments><description>&lt;p&gt;I am starting my new job this week as a Solutions Architect&amp;nbsp;for the EMC Microsoft Practice in Denver. With this new position I&amp;#39;ll be traveling around a lot, but I&amp;#39;m hoping that I&amp;#39;ll be able to contribute more to the myITforum community with all that extra time spent sitting around in hotel rooms. This is also going to be a great chance for me to broaden my knowledge base as I learn new stuff and get exposure to different enterprise environments. I&amp;#39;m really excited about this and I think its going to be a great opportunity for me!&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=101634" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Miscellaneous/default.aspx">Miscellaneous</category></item><item><title>The 10 Immutable Laws of Security Patch Management</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/03/the-10-immutable-laws-of-security-patch-management.aspx</link><pubDate>Tue, 03 Apr 2007 13:46:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:100594</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=100594</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/03/the-10-immutable-laws-of-security-patch-management.aspx#comments</comments><description>&lt;FONT size=2&gt;
&lt;P&gt;I was going through some of my notes and I ran across this.&amp;nbsp;Its a list that&amp;nbsp;was presented a few years ago in a Microsoft webcast and I thought it might be good to post for those who hadn't seen it before.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;The 10 Immutable Laws of Security Patch Management&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Law # 1: Security patches are a fact of life &lt;/P&gt;
&lt;P&gt;Law # 2: It does no good to patch a system that was never secure to begin with &lt;/P&gt;
&lt;P&gt;Law # 3: There is no patch for bad judgment &lt;/P&gt;
&lt;P&gt;Law # 4: You cannot patch what you do not know you have &lt;/P&gt;
&lt;P&gt;Law # 5: The most effective patch is the one you do not have to apply &lt;/P&gt;
&lt;P&gt;Law # 6: A service pack covers a multitude of patches &lt;/P&gt;
&lt;P&gt;Law # 7: All patches are not created equal &lt;/P&gt;
&lt;P&gt;Law # 8: Never base your patching decision on whether you have seen an exploit code … Unless you have seen an exploit code &lt;/P&gt;
&lt;P&gt;Law # 9: Everyone has a patch management strategy, whether they know it or not &lt;/P&gt;
&lt;P&gt;Law #10: Patch management is really Risk Management &lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;Source: &lt;/FONT&gt;&lt;A href="http://download.microsoft.com/download/0/1/a/01a053e8-3e18-4f73-b8e7-68d53a8232da/Russell_SBB_CA_PatchManagement.ppt"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;http://download.microsoft.com/download/0/1/a/01a053e8-3e18-4f73-b8e7-68d53a8232da/Russell_SBB_CA_PatchManagement.ppt&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=100594" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Patch+Management/default.aspx">Patch Management</category></item><item><title>These Are a Few of My Favorite Things...</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/01/these-are-a-few-of-my-favorite-things.aspx</link><pubDate>Mon, 02 Apr 2007 05:22:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:100414</guid><dc:creator>bleary</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=100414</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/04/01/these-are-a-few-of-my-favorite-things.aspx#comments</comments><description>&lt;P&gt;Here's a &lt;A class="" title=Swag href="http://www.flickr.com/photos/7680665@N08/443168007/" target=_blank&gt;photo&lt;/A&gt; and list of the swag I got at MMS this year. Thanks to all the vendors for providing some really fun stuff!&lt;/P&gt;
&lt;P&gt;Symantec Bean Bag Chair&lt;BR&gt;Windows Vista Ultimate (Prize)&lt;BR&gt;Altiris Head Rest&lt;BR&gt;2 Kace Dartmen&lt;BR&gt;MMS 2007 Shirt&lt;BR&gt;TechSexy Shirt&lt;BR&gt;2 Intel VPro Shirts&lt;BR&gt;Powershell Shirt&lt;BR&gt;MMS Alumni Shirt&lt;BR&gt;Full Armor Shirt&lt;BR&gt;Full Armor Rubber Knight&lt;BR&gt;System Center Slinky&lt;BR&gt;System Center Water Bottle&lt;BR&gt;4 System Center Beach Balls&lt;BR&gt;2 System Center Yo-yos&lt;BR&gt;2 System Center Lighted Superballs&lt;BR&gt;2 NetIQ Yo-yos&lt;BR&gt;2 F5 Balls&lt;BR&gt;2 Secure Vantage Balls&lt;BR&gt;3 Tins of 1E Mints&lt;BR&gt;Intellinet Coozi&lt;BR&gt;EMC Ethernet Cable&lt;BR&gt;Microsoft Forefront Badge Clip&lt;BR&gt;1E Card Light&lt;BR&gt;Configuresoft Lip Balm&lt;BR&gt;Computer Associates Tote Bag&lt;BR&gt;BMC Software Tote Bag&lt;BR&gt;4 Citrix Pens&lt;BR&gt;Tidalsoft Pen&lt;BR&gt;F5 Pen&lt;BR&gt;MyITforum Party Button&lt;BR&gt;4 Novell Light Cubes&lt;BR&gt;4 Intel Light Cubes&lt;/P&gt;
&lt;P&gt;The lighted ice cubes are really cool when you put a bunch of them in the bathtub! Click &lt;A class="" title="Ice Cubes" href="http://www.flickr.com/photos/7680665@N08/443168009/" target=_blank&gt;here&lt;/A&gt; for photo.&lt;/P&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=100414" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/Miscellaneous/default.aspx">Miscellaneous</category></item><item><title>Softgrid Sessions at MMS</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/26/softgrid-sessions-at-mms.aspx</link><pubDate>Mon, 26 Mar 2007 17:54:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:100207</guid><dc:creator>bleary</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=100207</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/26/softgrid-sessions-at-mms.aspx#comments</comments><description>&lt;P&gt;My co-worker Sean McHugh and I are&amp;nbsp;back for&amp;nbsp;our second year at MMS, and already&amp;nbsp;we can already tell this is going to be an awesome week!&amp;nbsp;We're really looking forward to some of the sessions and labs&amp;nbsp;we have scheduled, especially the Softgrid stuff. If you're still mulling about which sessions to take, I really encourage you to check&amp;nbsp;out some of the Softgrid sessions. Once you wrap your brain around what it does along with some of the other functions of MDOP, its easy to get excited about how this will revolutionize application deployment! We are looking at deploying this at&amp;nbsp;our company next&amp;nbsp;month and it will cut our SMS package development time&amp;nbsp;down from days (or sometimes weeks) to just several minutes. It also does other cool tricks such as updating and tracking your apps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you're not able to get into any of the labs, at least check out the Softgrid virtual lab that Anthony Clendenen posted about earlier in his blog &lt;A class="" title="AClendenen's Softgrid Posting" href="http://myitforum.com/cs2/blogs/socal/archive/2007/03/21/off-campus-link-softgrid-virtual-labs.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=100207" width="1" height="1"&gt;</description></item><item><title>Download: Creating SMS Web Reports from SMS Queries</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/12/download-creating-sms-web-reports-from-sms-queries.aspx</link><pubDate>Tue, 13 Mar 2007 04:45:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99858</guid><dc:creator>bleary</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99858</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/12/download-creating-sms-web-reports-from-sms-queries.aspx#comments</comments><description>&lt;P&gt;I had a couple different people e-mail me and say that they couldn't see the images for my "Creating SMS Web Reports from SMS Queries" blog posts. I thought that it might just be due to the page taking too long to load as I&amp;nbsp;could see the images&amp;nbsp;just fine, but it turns out they were right - the images weren't published properly. I fixed the problem, but if anyone still has trouble viewing the posts and wants to download an offline copy, I have it attached to this posting.&lt;/P&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99858" width="1" height="1"&gt;</description><enclosure url="http://myitforum.com/cs2/blogs/bleary/attachment/99858.ashx" length="1813984" type="application/x-zip-compressed" /><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part I</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/From-SMS-Queries-to-SMS-Web-Reports-_2D00_-Part-I.aspx</link><pubDate>Tue, 06 Mar 2007 04:36:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:73896</guid><dc:creator>bleary</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=73896</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/From-SMS-Queries-to-SMS-Web-Reports-_2D00_-Part-I.aspx#comments</comments><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;STRONG&gt;&lt;U&gt;From SMS Query to SQL Query&lt;/U&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/SPAN&gt;In the past, there have been some &lt;A href="http://www.myitforum.com/articles/1/view.asp?id=4984" target=_blank&gt;articles&lt;/A&gt; written on myITforum.com&amp;nbsp;and also some forum posts describing how to use the smsprov.log file to convert SMS queries to SQL queries. This is a fairly simple procedure, but if you try to take it a step further to create a web report using this method, the query causes a 'SELECT permission denied' error when the report is run. In this series of articles, I am going to explain how to use SQL views from the SMS database in a SQL query to avoid this error, speed up the query process as well, and teach you some basic Transact-SQL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Converting from an SMS Query to a SQL Query&lt;/SPAN&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;The first thing we will look at is how to take an SMS query and convert it to a SQL query which will later become our web report. We'll start with a fairly simple SMS query to return the SMS Site Code, System Name, Last User Logon Name, and Add/Remove Program Display Name for any systems that have Internet Explorer 7 installed. Here's the WQL language so you can just paste it into an SMS query:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;select SMS_R_System.SMSAssignedSites, SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from&amp;nbsp; SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Windows Internet Explorer 7"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Run the query in SMS and view the results. Now open up the SMS SQL provider log file named smsprov.log which resides in the \SMS\Logs directory on the site server and scroll to the bottom of the log. You will see a line that starts with "Execute WQL=" followed by the SMS query that you pasted in. Immediately below that, there is a line that begins with "Execute SQL=" followed by the SQL query that the SMS SQL Provider converted from WQL. Highlight the SQL query from "select all" to the end and copy it. The SQL query looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;select&amp;nbsp; all SMS_R_System.ItemKey,SMS_R_System.Name0,SMS_R_System.User_Name0,__System_ADD_REMOVE_PROGRAMS0.DisplayName00 from System_DISC AS SMS_R_System INNER JOIN Add_Remove_Programs_DATA AS __System_ADD_REMOVE_PROGRAMS0 ON __System_ADD_REMOVE_PROGRAMS0.MachineID = SMS_R_System.ItemKey&amp;nbsp;&amp;nbsp; where __System_ADD_REMOVE_PROGRAMS0.DisplayName00 = "Windows Internet Explorer 7"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;From a SQL Query to an SMS Web Report that doesn’t work&lt;/SPAN&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-weight:bold;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Now we’re going to create an SMS Web Report from this SQL query so you can see what the ‘SELECT permission denied’ error looks like. &lt;SPAN style="COLOR:black;"&gt;In the SMS Administrator’s &lt;A class="" title=OLE_LINK2 name=OLE_LINK2&gt;&lt;/A&gt;&lt;A class="" title=OLE_LINK1 name=OLE_LINK1&gt;&lt;/A&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;onsole, expand the Reporting node, and then right-click on Reports. From the pop-up menu, select New -&amp;gt; Report and &lt;/SPAN&gt;&lt;SPAN style="mso-bidi-font-weight:bold;"&gt;title it, “All Systems with Microsoft Internet Explorer 7” and then click on the Edit SQL Statement button. Delete the default query text in the SQL Statement window, paste in our SQL query, and then click on OK. The report properties should look like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-weight:bold;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="mso-bidi-font-weight:bold;"&gt;&lt;IMG title="Query Analyzer0" alt="Query Analyzer0" src="http://myitforum.com/cs2/photos/bleary/images/99569/original.aspx"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-bidi-font-weight:bold;"&gt;Click on OK to save the report. To run the report, right-click on it in the SMS Administrator Console, and then from the pop-up menu select All Tasks -&amp;gt; Run -&amp;gt; YourSMSReportingServerName. When you run the report, you should see an error message like&amp;nbsp;this:&lt;/SPAN&gt;&amp;nbsp;&lt;IMG title="Web Report Error 1" style="WIDTH:640px;HEIGHT:341px;" height=341 alt="Web Report Error 1" src="http://myitforum.com/cs2/photos/bleary/images/76699/original.aspx" width=640&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-weight:bold;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-bidi-font-weight:bold;"&gt;So why is it that we can run this query in SMS which passes it to SQL flawlessly, yet when we take the same SQL query and dump it into a web report we get this error? The answer is that the SQL query references SQL tables, and the SMS SQL provider lets you access those tables through the SMS Administrator’s console. When you try to run the web report, the SQL provider is out of the picture, and in the context of permissions that you are running the web report under you don’t have permissions to the SQL tables – and that’s a good thing! You wouldn’t want your users who have access to your web reports to have direct rights to the data in your SQL tables.&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-weight:bold;"&gt;The solution to this is to use SQL views in your web report, which your users will have access to and it will also speed up your querying process. In part 2 of this article, we will go though how to convert your SQL query to use SMS views.&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=73896" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part II</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-ii.aspx</link><pubDate>Tue, 06 Mar 2007 04:35:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99611</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99611</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-ii.aspx#comments</comments><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE:12pt;COLOR:black;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;U&gt;&lt;STRONG&gt;Using Query Analyzer&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:12pt;COLOR:black;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In part one of this article series, we saw how to convert an SMS query to a SQL query, but when we tried to take the same SQL statement and make it a web report it returned a ‘permissions denied’ error. Part two will provide an overview on how to use Query Analyzer, what SQL tables are, and how to run a SQL query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;**DISCLAIMER: The exercises in this article discuss how to read data from a SQL database using SELECT statements. As long as you stay within the confines of what is being presented, you do not run any risk of damaging or altering your SQL data. Unless you are aware of what you are doing or are instructed by someone who knows SQL, you should never alter the data in your SMS database either directly or through INSERT or UPDATE statements. That being said, please don’t blame me if you crush your database by deviating from the exercises and venturing off on your own! &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Editing the SQL Query using Query Analyzer&lt;/SPAN&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-bidi-font-weight:bold;"&gt;G&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;o to the Microsoft SQL Server program group and open the SQL 2000 Query Analyzer which allows you to run SQL queries against your SMS database. I'm using the older version of SQL for this article since not everyone is using SQL 2005 so the SQL 2000 Query Analyzer is a better common ground. (If you’re using SQL 2005 then you would use the Query Editor instead of Query Analyzer.) Now type in your SQL server name where the SMS database resides and select either Windows or SQL Server authentication depending on which option you chose when you installed SMS. If you use SQL Server authentication you will need to provide a username and password for a SQL account that has access to the SMS database. After clicking on OK, you need to select your SMS database from the drop down menu on the toolbar at the top of the screen. If you don’t do this then you will get an error stating, “Invalid object name” when the query tries to run. Now cut and paste the SQL query that we pulled from the smsprov.log file in Part 1 of this article series into the Query Analyzer window. For convenience, here’s the SQL query:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;select&amp;nbsp; all SMS_R_System.ItemKey,SMS_R_System.Name0,SMS_R_System.User_Name0,__System_ADD_REMOVE_PROGRAMS0.DisplayName00 from System_DISC AS SMS_R_System INNER JOIN Add_Remove_Programs_DATA AS __System_ADD_REMOVE_PROGRAMS0 ON __System_ADD_REMOVE_PROGRAMS0.MachineID = SMS_R_System.ItemKey&amp;nbsp;&amp;nbsp; where __System_ADD_REMOVE_PROGRAMS0.DisplayName00 = "Windows Internet Explorer 7"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Your window should now look something like the screen shot below, but please note that I have removed my server name from the Query Analyzer window due to company policy. If you’re not seeing the object browser pane on the left side, then hit the F8 key to display it. For readability, I’ve added some line breaks into the query, which Query Analyzer will ignore when the query runs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG title=QueryAnalyzer1 style="WIDTH:975px;HEIGHT:515px;" height=515 alt=QueryAnalyzer1 src="http://myitforum.com/cs2/photos/bleary/images/99570/original.aspx" width=975&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;What are SQL Tables?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Before we proceed in modifying this query, we need to understand what it is doing. One of the first things you will need to know if you don’t already is that SQL stores its data in tables. Let’s use the Object Browser window on the left side to look at some tables in the SMS database. Expand your SMS database name, and then expand User Tables. If you scroll down, you will see a list of all the tables in your SMS database.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer2 style="WIDTH:262px;HEIGHT:369px;" height=369 alt=QueryAnalyzer2 src="http://myitforum.com/cs2/photos/bleary/images/99571/original.aspx" width=262&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Now we’re going to choose a table and display the data that resides in it. Scroll down to the table named, “dbo.CD_ROM_DATA” and expand it, then expand Columns. This shows all the different CD ROM information that SMS collects on a client system during a Hardware Inventory cycle as defined in your sms_def.mof file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer3 style="WIDTH:314px;HEIGHT:397px;" height=397 alt=QueryAnalyzer3 src="http://myitforum.com/cs2/photos/bleary/images/99572/original.aspx" width=314&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Next, we’ll look at the data that resides in this table. Right click on dbo.CD_ROM_DATA. From the pop-up menu that appears, choose “Script object to new window as” then “Select” which will open a new window in Query Analyzer with a SQL query to return all the rows in the table. To run the query, you can either choose Execute from the Query menu in Query Analyzer or click on the green triangle in the toolbar. When the query runs, it will display all the CD ROM data that SMS has collected from your clients in the results pane on the bottom. If you scroll over to the right, you can see all the different columns.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer4 style="WIDTH:975px;HEIGHT:550px;" height=550 alt=QueryAnalyzer4 src="http://myitforum.com/cs2/photos/bleary/images/99573/original.aspx" width=975&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;When you’re finished viewing the results, close the child window in SQL Analyzer by clicking on the gray X in the upper right hand corner to go back to our original SQL query for Internet Explorer 7. We will continue with this i&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-bidi-font-weight:bold;"&gt;n Part 3 of this article, where we will look at the SQL query and decipher what each line in the query is doing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99611" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part III</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-iii.aspx</link><pubDate>Tue, 06 Mar 2007 04:34:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99619</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99619</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-iii.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="COLOR:black;"&gt;Deciphering the SQL Query&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Part 2 of this series showed how to use the SQL 2000 Query Analyzer, what SQL tables are, and showed how to run a SQL query. In Part 3 we will look at each line of the SQL query and explain what it is doing. From where we left off in the previous article, you should be back to having Query Analyzer with the IE 7 SQL query pasted in the query window.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer1 style="WIDTH:975px;HEIGHT:515px;" height=515 alt=QueryAnalyzer1 src="http://myitforum.com/cs2/photos/bleary/images/99570/original.aspx" width=975&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Some Transact SQL Basics&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;So now let’s take a moment to examine the SQL query and understand what it is doing. You will notice that SQL has very similar syntax to the WQL queries in SMS that are automatically generated when you create an SMS query. Each query contains keywords that Query Analyzer recognizes and highlights in blue. There are numerous reserved keywords in SQL, but for the purpose of this article we are only examining a few as they are the most common ones that you will run into. The ones we will be learning are SELECT, FROM, AS, INNER JOIN, ON, and WHERE.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In order to explain these keywords, we will start with a basic overview of the entire SQL statement and then go back and explain each keyword in detail. This may seem confusing at first, but hang in there and it will make more sense in a minute. Let’s start with the entire SQL statement again; for readability, I will be highlighting the SQL keywords in blue:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:Arial;"&gt;ALL&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; SMS_R_System.ItemKey, SMS_R_System.Name0, SMS_R_System.User_Name0, __System_ADD_REMOVE_PROGRAMS0.DisplayName00 &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; System_DISC &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; SMS_R_System &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:Arial;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; Add_Remove_Programs_DATA &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; __System_ADD_REMOVE_PROGRAMS0 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; __System_ADD_REMOVE_PROGRAMS0.MachineID = SMS_R_System.ItemKey&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; __System_ADD_REMOVE_PROGRAMS0.DisplayName00 = "Windows Internet Explorer 7"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Now we’ll go into each line in further detail. SELECT is the first SQL keyword we will look at as it is the first one listed in the query, along with its secondary keyword ALL. Here’s the first line of the SQL query:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp; &lt;SPAN style="COLOR:gray;"&gt;ALL&lt;/SPAN&gt; SMS_R_System.ItemKey, SMS_R_System.Name0, SMS_R_System.User_Name0, __System_ADD_REMOVE_PROGRAMS0.DisplayName00&lt;SPAN style="COLOR:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The SELECT ALL keywords are followed by references in the form of &lt;I style="mso-bidi-font-style:normal;"&gt;Table Name or Alias&lt;B style="mso-bidi-font-weight:normal;"&gt;.&lt;/B&gt;Column Name&lt;/I&gt;, each of which is separated by a comma. The ALL keyword is self-explanatory, but I want to point out that you can also use SELECT * to return the same results.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In our query, SMS_R_System is an alias for the table name System_DISC which is defined in the next SQL statement using the FROM and AS keywords in the next line. Additionally, we are displaying the DisplayName00 column from a table aliased as &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;__System_ADD_REMOVE_PROGRAMS0. This alias is defined in the INNER JOIN statement which we will explain shortly. For now, w&lt;SPAN style="COLOR:black;"&gt;e’ll look at the FROM statement next and then tie these two lines together. The FROM line is as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt; System_DISC &lt;SPAN style="COLOR:blue;"&gt;AS&lt;/SPAN&gt; SMS_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;This one’s easy; we’re selecting our columns from a table named System_DISC but from now on we are referring to it using the alias SMS_R_System. Let’s take a look at what we have so far in terms of the aliases, the red arrows show where each alias is used in the SELECT statement:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer5 style="WIDTH:975px;HEIGHT:515px;" height=515 alt=QueryAnalyzer5 src="http://myitforum.com/cs2/photos/bleary/images/99574/original.aspx" width=975&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Sorry about the mess; this obviously isn’t an art class, but hopefully you get the idea. I really need to stop using Microsoft Crayon and learn how to use Microsoft Paint instead!&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Next we will look at INNER JOIN. There are several different types of joins in SQL, but for simplicity we will keep it limited to just this one. Basically, what an INNER JOIN does is to join two or more tables or views and display data from both of them. The ON keyword specifies which two columns that the join is linked on. Let’s examine what our INNER JOIN statement is doing in our query:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:gray;FONT-FAMILY:Arial;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; Add_Remove_Programs_DATA &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; __System_ADD_REMOVE_PROGRAMS0 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; __System_ADD_REMOVE_PROGRAMS0.MachineID = SMS_R_System.ItemKey&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;First we are taking the table named Add_Remove_Programs_DATA and aliasing it as __System_ADD_REMOVE_PROGRAMS0. The ON keyword is then linking the MachineID column from the table aliased as __System_ADD_REMOVE_PROGRAMS0 to the ItemKey column in the table aliased as SMS_R_System.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The last line with the WHERE keyword simply states that the only rows in the database that should be returned are the ones in the __System_ADD_REMOVE_PROGRAMS0 table where the data in the DisplayName00 column is equal to Windows Internet Explorer 7. This line looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt; &lt;SPAN style="COLOR:black;"&gt;__System_ADD_REMOVE_PROGRAMS0.DisplayName00 = “Windows Internet Explorer 7”&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;In summary,&lt;SPAN style="COLOR:black;"&gt; what our SQL query is saying is to display the columns named ItemKey, Name0, and UserName0 from a table called System_DISC which is aliased as SMS_R_System. We are also displaying another column named DisplayName00 from a table aliased as __System_ADD_REMOVE_PROGRAMS0, and this table is joined to the other table. This query will only return the rows where the __System_ADD_REMOVE_PROGRAMS0 table has data in the DisplayName00 column that is equal to Windows Internet Explorer 7.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;So hopefully you now have at least a basic knowledge of what the SQL statement is doing, and you’re ready to start learning about SQL views which we will cover in Part 4. But before I close this article out, I have one more helpful tip: If you ever run across another keyword or want to look up more information on one of the ones that we’ve covered, Query Analyzer has context-sensitive help so you can highlight a particular keyword in a query then hit SHIFT+F1 to display help on that particular keyword. SQL Books Online has to be installed in order for this to work properly, which can be done by re-running the setup utility.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99619" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part IV</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-iv.aspx</link><pubDate>Tue, 06 Mar 2007 04:33:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99620</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99620</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-iv.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;STRONG&gt;&lt;U&gt;SQL Views&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In Part 3, we dismantled our SQL query and explained what it is doing and the logic behind it. In this article, we will be covering SQL views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;What are SQL Views?&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;SQL Views are predefined SQL queries that are run against one or more tables to present data to the user without actually giving them direct access to the SQL database. Views are kind of like a sneeze guard at a buffet line. Just as that quarter-inch piece of plastic protects the food from people’s forcefully expelled germs, SQL views prevent your users from contaminating your SMS database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;To use a view in a SQL query, you would treat it just as if it was a SQL table name. SMS automatically creates SQL views for the tables that are in the SMS database, so you should always be able to find the view you need to access any of the tables. Let’s open up Query Analyzer and look at a SQL view by expanding Views in the Object Browser. Scroll down to dbo.v_R_System, expand it, and then expand Columns. Your Object Browser should now look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;IMG title=QueryAnalyzer6 style="WIDTH:395px;HEIGHT:506px;" height=506 alt=QueryAnalyzer6 src="http://myitforum.com/cs2/photos/bleary/images/99624/original.aspx" width=395&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;You may have noticed that after dbo., most views start with a letter ‘v’ followed by an underscore, which makes it easier to denote them as views. Now we will examine the SQL statement that defines the view. Right-click on dbo.v_R_System and select Edit from the menu. The SQL query for the view will open in a new Query Analyzer window, and that query looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET QUOTED_IDENTIFIER OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET ANSI_NULLS OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ALTER&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;VIEW&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; dbo.v_R_System &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; ItemKey &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'ResourceID'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;, DiscArchKey &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'ResourceType'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,Active0,AD_Site_Name0,Client0,Client_Type0,Client_Version0,CPUType0,Creation_Date0,Decommissioned0,Hardware_ID0,User_Domain0,User_Name0,Name0,Netbios_Name0,Obsolete0,Operating_System_Name_and0,Previous_SMS_UUID0,Resource_Domain_OR_Workgr0,SMS_Unique_Identifier0,SMS_UUID_Change_Date0,Community_Name0 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; System_DISC&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET QUOTED_IDENTIFIER OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET ANSI_NULLS ON &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;There are a lot of new SQL keywords that you hadn’t seen before, but for the purpose of this article you don’t need to be concerned with what they do. For now, just look at the ALTER VIEW statement, where you can see that it is querying &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; System_DISC. We will look at that table next and compare its columns to the ones in the v_R_System view. Just to keep things easier to read, I will be leaving the dbo. off of the beginning of the view names throughout the rest of these articles. Now, close the child window and select to not save any changes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Next, scroll up to User Tables, and then expand SystemDisc and Columns. You will see that most of the same columns exist in both the table and its related view. Here’s a look at both of them side by side so you can see the similarities. Query Analyzer doesn’t list them in alphabetical order, but you can see how the v_R_System view is comprised of most of the columns in the System_DISC table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer8 style="WIDTH:799px;HEIGHT:454px;" height=454 alt=QueryAnalyzer8 src="http://myitforum.com/cs2/photos/bleary/images/99576/original.aspx" width=799&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In most cases, you will be able to figure out which view in your SMS database corresponds to which table just by browsing through the list of names as they are named similarly. Here are a few examples:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;
&lt;TABLE class=MsoTableGrid style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;mso-border-alt:solid windowtext .5pt;mso-yfti-tbllook:191;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-border-insideh:.5pt solid windowtext;mso-border-insidev:.5pt solid windowtext;" cellSpacing=0 cellPadding=0 class="MsoTableGrid"&gt;

&lt;TR style="mso-yfti-irow:0;mso-yfti-firstrow:yes;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:windowtext 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Table Name&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:windowtext 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;View Name&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:1;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;System_DISC&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_R_System&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:2;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;ADD_REMOVE_PROGRAMS_DATA&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_GS_ADD_REMOVE_PROGRAMS&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:3;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;CD_ROM_DATA&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_GS_CDROM&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:4;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;OPERATING_SYSTEM_DATA&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_GS_OPERATING_SYSTEM&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:5;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;System_IP_Subnets_ARR&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_RA_System_IPSubnets&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow:6;mso-yfti-lastrow:yes;"&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:windowtext 1pt solid;WIDTH:185.4pt;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;SoftwareFile&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD class="" style="BORDER-RIGHT:windowtext 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:#ece9d8;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0in;BORDER-LEFT:#ece9d8;WIDTH:2.5in;PADDING-TOP:0in;BORDER-BOTTOM:windowtext 1pt solid;BACKGROUND-COLOR:transparent;mso-border-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;v_SoftwareFile&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;As you can see, it’s pretty straightforward. The table names &lt;I style="mso-bidi-font-style:normal;"&gt;usually&lt;/I&gt; end with _DATA and the aliases &lt;I style="mso-bidi-font-style:normal;"&gt;usually&lt;/I&gt; start with v_GS_, which is information that is gathered during a Hardware Inventory cycle. One thing that you do need to know is that the views that start with v_HS_ are referencing tables containing SMS history data. So unless you are writing an SMS Web Report to use historical information you will generally want to avoid using the v_HS views.&lt;I style="mso-bidi-font-style:normal;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;At this point, you should have enough of an idea of what the SQL statement is doing and how views are used, so we can now move on to Part 5 where we will start converting our SQL query to use SQL views.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99620" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part V</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-v.aspx</link><pubDate>Tue, 06 Mar 2007 04:32:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99621</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99621</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-v.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="COLOR:black;"&gt;Modifying the report to use views&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In Part 4, we defined what SQL views are and compared them with the tables. Now that you have all this SQL knowledge in that big brain of yours, we can finally start converting our SQL query to use SQL views instead of tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Switching to Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;We will start with our original SQL query which you should still have pasted in Query Analyzer. Make sure that your SMS database is selected in the database drop-down field on the toolbar before we proceed so that Query Analyzer knows that the queries you are running are against your SMS database. Here’s the original query again:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;select&amp;nbsp; all SMS_R_System.ItemKey,SMS_R_System.Name0,SMS_R_System.User_Name0,__System_ADD_REMOVE_PROGRAMS0.DisplayName00 from System_DISC AS SMS_R_System INNER JOIN Add_Remove_Programs_DATA AS __System_ADD_REMOVE_PROGRAMS0 ON __System_ADD_REMOVE_PROGRAMS0.MachineID = SMS_R_System.ItemKey&amp;nbsp;&amp;nbsp; where __System_ADD_REMOVE_PROGRAMS0.DisplayName00 = "Windows Internet Explorer 7"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;U&gt;Replace double quotes with single quotes&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The first thing we’re going to do is to run the query and see what it returns. Go to the Query menu and select Execute, or hit the F5 key. The results pane will appear with the following error:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 3, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'Windows Internet Explorer 7'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The problem is that SQL is expecting single quotes around the text string, ‘Windows Internet Explorer 7’ instead of double quotes. In order to use double quotes, you could use the SET QUOTED_IDENTIFIER keyword, but instead of messing around with that we’ll go ahead and give SQL what its expecting, which are single quotes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;This isn’t rocket science; it’s the same thing you’ve done in Microsoft Word or Excel or a bajillion other apps. Go to the Edit menu and select Replace. Enter a double quote in the Find field and a single quote in the Replace with field, and then click on the Replace All button. If you don’t feel like doing a Find/Replace, you can always just directly make the edit to the query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer9 style="WIDTH:411px;HEIGHT:165px;" height=165 alt=QueryAnalyzer9 src="http://myitforum.com/cs2/photos/bleary/images/99577/original.aspx" width=411&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;You’ll notice that as soon as you hit that button, ‘&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Windows Internet Explorer 7’ will turn red in the query window. That means that Query Analyzer now recognizes that as a text string because of the single quotes. Your Query Analyzer window should now look like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer10 style="WIDTH:1024px;HEIGHT:550px;" height=550 alt=QueryAnalyzer10 src="http://myitforum.com/cs2/photos/bleary/images/99578/original.aspx" width=1024&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Now that we made a change, let’s see what happens when you run the query:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer13 style="WIDTH:923px;HEIGHT:636px;" height=636 alt=QueryAnalyzer13 src="http://myitforum.com/cs2/photos/bleary/images/99580/original.aspx" width=923&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;OK, so we’re getting some results now, but if you tried to put this query into a web report you would still get an ‘Access denied’ error as we still need to convert it to use SQL views. This is because of the permissions context that we are running under in Query Analyzer, which has more rights than when you run a web report. Notice also that the first column is displaying ItemKey instead of the SMS Site code so we will eventually need to fix that as well, but first we will take care of the views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;U&gt;Replacing the table name System_DISC&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Let’s start swapping table names for views by looking at the &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;…&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; line in the query, which currently looks like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; System_DISC &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; SMS_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;We discussed this line back in Part 3 of this article series, where it was explained that this line is &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;selecting our columns from a table named System_DISC and aliasing it as SMS_R_System. What we need to do at this point is to replace System_DISC &lt;SPAN style="COLOR:black;"&gt;with its corresponding view name, v_R_System. After performing the replace, the line should look like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; SMS_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;So now we are telling Query Analyzer to select columns from the view named v_R_System and alias it as SMS_R_System.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;U&gt;Replace SMS_R_System with v_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;The next thing we’re going to do is to replace the alias name SMS_R_System. As before, so again: Edit -&amp;gt; Replace and populate the fields as shown below, then hit Replace All to replace the multiple instances of SMS_R_System in the query:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer11 style="WIDTH:411px;HEIGHT:165px;" height=165 alt=QueryAnalyzer11 src="http://myitforum.com/cs2/photos/bleary/images/99579/original.aspx" width=411&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Just to make sure we’re on the same page, Query Analyzer now looks like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer14 style="WIDTH:937px;HEIGHT:550px;" height=550 alt=QueryAnalyzer14 src="http://myitforum.com/cs2/photos/bleary/images/99581/original.aspx" width=937&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Since we’ve made this change, take a look at the &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;…&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Who’s writing this query? Someone from the Department Of Redundancy Department? What it is now saying is to select columns from the view named v_R_System and alias it as v_R_System. The whole purpose of using an alias is to give a long table or view name a shorter or friendlier way to reference the name. Since we are now just aliasing the view for what its name is anyway, we are going to remove it. Using an alias is optional, so this won’t affect the functionality of the query. Delete “&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System” from the &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; line so that it now reads as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;We are now ready to move on to the next table/view name swaps that we need to do for Add_Remove_Programs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;U&gt;&lt;STRONG&gt;Adding the Views for Add_Remove_Programs&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;This is a lot like what we just did for v_R_System. In the &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt; line, replace the table name Add_Remove_Programs_DATA with its corresponding view name v_GS_ADD_REMOVE_PROGRAMS. Next, replace the alias name __System_ADD_REMOVE_PROGRAMS0 (note that that is a double underscore before System) with the view name v_GS_ADD_REMOVE_PROGRAMS, and you‘ll end up with this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer15 style="WIDTH:937px;HEIGHT:550px;" height=550 alt=QueryAnalyzer15 src="http://myitforum.com/cs2/photos/bleary/images/99582/original.aspx" width=937&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Once again, we have a self-referencing alias in the INNER JOIN line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Delete the alias, and then it becomes this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Hopefully at this point you’re not completely lost, but if you are then here is what the query text should look like:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; all v_R_System.ItemKey, v_R_System.Name0, v_R_System.User_Name0,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;v_GS_ADD_REMOVE_PROGRAMS.DisplayName00 &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;ON v_GS_ADD_REMOVE_PROGRAMS.MachineID = v_R_System.ItemKey&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS.DisplayName00 = 'Windows Internet Explorer 7'&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Let’s see how we’re faring so far; go ahead and run the query and see what it does.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer16 style="WIDTH:937px;HEIGHT:550px;" height=550 alt=QueryAnalyzer16 src="http://myitforum.com/cs2/photos/bleary/images/99583/original.aspx" width=937&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Did you get a bunch of column name errors like I got? Excellent! Everything is working according to my plan! In Part 6 of this series, we will examine what caused these errors and how to clean them up.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99621" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item><item><title>Creating SMS Web Reports from SMS Queries - Part VI</title><link>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-vi.aspx</link><pubDate>Tue, 06 Mar 2007 04:31:00 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:99622</guid><dc:creator>bleary</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://myitforum.com/cs2/blogs/bleary/rsscomments.aspx?PostID=99622</wfw:commentRss><comments>http://myitforum.com/cs2/blogs/bleary/archive/2007/03/05/creating-sms-web-reports-from-sms-queries-part-vi.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="COLOR:black;"&gt;Selecting the Proper Column Names From the Views&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;In Part 5, we replaced the table names with view names, and tidied up the query by removing the aliases. When we ran the query, there were several errors regarding invalid column names:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 3, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'MachineID'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 1, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'ItemKey'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 1, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'ItemKey'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 1, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'DisplayName00'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;Server: Msg 207, Level 16, State 1, Line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Invalid column name 'DisplayName00'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The reason that we are getting these errors is because the columns names in the views are different than those in the tables. Let’s take a look at the columns within the views and you’ll get a better idea.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Fixing the Error for MachineID&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;The first error in our list was for MachineID from the INNER JOIN line so we’ll check that one out first. In Query Analyzer, expand your SMS database name in the Object Browser on the left side, and then expand Views. Next, expand v_GS_ADD_REMOVE_PROGRAMS, and then expand its columns node. Notice that MachineID is not one of the listed columns, so when the query tried to reference v_GS_ADD_REMOVE_PROGRAMS.MachineID it was unable to find the MachineID column in that view.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer17 style="WIDTH:1004px;HEIGHT:550px;" height=550 alt=QueryAnalyzer17 src="http://myitforum.com/cs2/photos/bleary/images/99584/original.aspx" width=1004&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;So here’s how to fix it. Right-click on v_GS_ADD_REMOVE_PROGRAMS and select Edit to display the query that created the view. The following query will appear in the query pane:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET QUOTED_IDENTIFIER OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET ANSI_NULLS OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ALTER&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;VIEW&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; dbo.v_GS_ADD_REMOVE_PROGRAMS &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;BACKGROUND:yellow;COLOR:blue;FONT-FAMILY:Arial;mso-highlight:yellow;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;BACKGROUND:yellow;COLOR:black;FONT-FAMILY:Arial;mso-highlight:yellow;"&gt; MachineID &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;BACKGROUND:yellow;COLOR:blue;FONT-FAMILY:Arial;mso-highlight:yellow;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;BACKGROUND:yellow;COLOR:black;FONT-FAMILY:Arial;mso-highlight:yellow;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;BACKGROUND:yellow;COLOR:red;FONT-FAMILY:Arial;mso-highlight:yellow;"&gt;'ResourceID'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;, InstanceKey &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'GroupID'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;, RevisionID, AgentID, TimeKey &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'TimeStamp'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,DisplayName00 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'DisplayName0'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,InstallDate00 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'InstallDate0'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,ProdID00 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'ProdID0'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,Publisher00 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'Publisher0'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;,Version00 &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'Version0'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; Add_Remove_Programs_DATA&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET QUOTED_IDENTIFIER OFF &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SET ANSI_NULLS ON &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;GO&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The part I want to draw your attention to is the part I highlighted in the query, &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; MachineID &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'ResourceID'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;. As you may recall from Part 4 of this article series, views are created by querying tables with a SQL statement and selecting the table columns that are used in the view. What’s happening here is that the view’s SQL query is selecting the MachineID column from the &lt;SPAN style="COLOR:black;"&gt;Add_Remove_Programs_DATA table and aliasing it as ResourceID in the view. If you look back over at the columns listed for the view, you will see ResourceID as one of the column names. So in order to get our query to work, we will have to replace MachineID with ResourceID since that is the column that is in the view. Close the child window by clicking on the gray X in the top right-hand corner of Query Analyzer, choose not to save the query, and you will be back at the original query. Look at the INNER JOIN line and find the column name, MachineID. I have it highlighted below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;ON v_GS_ADD_REMOVE_PROGRAMS.&lt;SPAN style="BACKGROUND:yellow;mso-highlight:yellow;"&gt;MachineID&lt;/SPAN&gt; = v_R_System.ItemKey&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Now replace MachineID with ResourceID and run the query again. The error for MachineID is now gone, and we just have the four other errors to deal with:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer18 style="WIDTH:1004px;HEIGHT:550px;" height=550 alt=QueryAnalyzer18 src="http://myitforum.com/cs2/photos/bleary/images/99585/original.aspx" width=1004&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Fixing the Error for ItemKey&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;The next error we need to correct is ItemKey, which is used in both the SELECT and INNER JOIN lines. If you edit the v_R_System view you will see this line in its query:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ALTER&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;VIEW&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; dbo.v_R_System &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;AS SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; ItemKey As &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'ResourceID'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;, …&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;How convenient; ItemKey is also aliased as ResourceID. This is because both ItemKey and MachineID contain the same data, which is a unique serial number that is given to each SMS client. In some tables it is put in a column named ItemKey and in others it is in a column named ResourceID. The really cool thing is that if you look at the columns for most of the views, a lot of them have ResourceID as a column. This was done intentionally by the SMS Developers so that you could use ResourceID to link different views with a join.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;So logically, we need to replace ItemKey with ResourceID in our query to reference the correct column name. Once we do that and run the query, we’ll be down to the last two errors that we need to fix:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer19 style="WIDTH:896px;HEIGHT:532px;" height=532 alt=QueryAnalyzer19 src="http://myitforum.com/cs2/photos/bleary/images/99586/original.aspx" width=896&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;Fixing the Error for DisplayName00&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;This last error that we need to resolve is referenced twice in both the &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt; lines, and it is actually very simple to fix. Expand the columns for the view v_GS_ADD_REMOVE_PROGRAMS and the change that we need to make is fairly clear:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer20 style="WIDTH:321px;HEIGHT:358px;" height=358 alt=QueryAnalyzer20 src="http://myitforum.com/cs2/photos/bleary/images/99587/original.aspx" width=321&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;So instead of DisplayName00 we need DisplayName0. Once the two changes have been done, our SQL query should now look like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;select all&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System.ResourceID, v_R_System.Name0, v_R_System.User_Name0,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_R_System&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;INNER JOIN&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;ON&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_R_System.ResourceID&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Arial;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt; v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 = &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:red;FONT-FAMILY:Arial;"&gt;'Windows Internet Explorer 7'&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;When we run the query, it is finally presenting us with some results:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;IMG title=QueryAnalyzer21 style="WIDTH:896px;HEIGHT:532px;" height=532 alt=QueryAnalyzer21 src="http://myitforum.com/cs2/photos/bleary/images/99588/original.aspx" width=896&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;SPAN style="FONT-SIZE:10pt;COLOR:black;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;You’re probably thinking that we’re home free and we can go ahead and copy our SQL query into a web report, but like so many other articles in this series, this one too ends in tragedy. Look at the first column. We’re getting a list of Resource IDs, but that not what we wanted when we started this whole process. Our original goal was to write an SMS web report to return &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:Arial;mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;the SMS Site Code, System Name, Last User Logon Name, and Add/Remove Program Display Name for any systems that have Internet Explorer 7 installed. To accomplish this, we’re going to need to get rid of ResourceID in the &lt;SPAN style="COLOR:blue;"&gt;SELECT&lt;/SPAN&gt; line and have it return the SMS Site Code instead, which is what we will be discussing in Part 7 of this article series.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=99622" width="1" height="1"&gt;</description><category domain="http://myitforum.com/cs2/blogs/bleary/archive/tags/SQL+Basics+for+SMS+Admins/default.aspx">SQL Basics for SMS Admins</category></item></channel></rss>