<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQLvariations: SQL Server, a little PowerShell, maybe some Hyper-V &#187; Uncategorized</title>
	<atom:link href="http://sqlvariant.com/wordpress/index.php/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlvariant.com/wordpress</link>
	<description>maybe even the occasional ETL tidbit</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:15:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>And We&#8217;re Back!</title>
		<link>http://sqlvariant.com/wordpress/index.php/2011/09/and-were-back/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2011/09/and-were-back/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 12:53:23 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/index.php/2011/09/and-were-back/</guid>
		<description><![CDATA[This page has been intentionally left blank for most of the last 4 months while I get some higher priority items taken care of. The hole in my theory about taking a break from blogging and being on twitter was that hundreds of people still have questions about PowerShell and my email address. I plan to post the answers to those questions over the next several weeks. In the meantime I want to give a quick mention about SQL Saturday #89 happening here in Atlanta in just 12 days. We’ve hit the maximum number of registrations we feel comfortable handling. If you’re on the wait list, we’ll send out an email later this week to people that were able to successfully register but now can’t make it, asking them to unregister. From the looks of the registration counts this might end up being a little under twice the size of last year’s SQL Saturday. More blogs coming soon!]]></description>
			<content:encoded><![CDATA[<p>This page has been intentionally left blank for most of the last 4 months while I get some higher priority items taken care of. The hole in my theory about taking a break from blogging and being on twitter was that hundreds of people still have questions about PowerShell and my email address. I plan to post the answers to those questions over the next several weeks.</p>
<p>In the meantime I want to give a quick mention about <a href="http://www.sqlsaturday.com/89/eventhome.aspx">SQL Saturday #89</a> happening here in Atlanta in just 12 days. We’ve hit the maximum number of registrations we feel comfortable handling. If you’re on the wait list, we’ll send out an email later this week to people that were able to successfully register but now can’t make it, asking them to unregister. From the looks of the registration counts this might end up being a little under twice the size of last year’s SQL Saturday.</p>
<p>More blogs coming soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2011/09/and-were-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Priorities Done</title>
		<link>http://sqlvariant.com/wordpress/index.php/2011/04/getting-priorities-done/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2011/04/getting-priorities-done/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 18:56:53 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=2201</guid>
		<description><![CDATA[﻿ Getting Priorities Done Last year I kept hearing about all these people using something called GTD (Getting Things Done).  They didn’t talk about it much.  But occasionally one of them would send out an excited tweet mentioning GTD.  I got tired of hearing all these excited tweets and finally decided to dive in.  I had actually purchased the audiobook of GTD years ago but never got around to listening to it.  I was only a few pages into the book when I had the urge to make a big list of everything I have to finish.  I started out putting everything into a spreadsheet.  Everything from “Script new Mount Point Daily Check Job” to “Remember to pickup dry cleaning” was going into this list.  I would frequently realize that I was behind on a certain task; so I’d stop and take care of that item.  After 6 hours I was in love with this technique.  After 18 hours I was slightly overwhelmed.  And after  48 hours I was ready to quit.  I had a list of over 80 items, and adding to that list did help me finish any of those items.  In fact the list left me feeling that life was more out of control than before my to-do items were written on paper.  I couldn’t understand how anyone –let alone all these people I had heard of – could get anything done using method.  Like my first attempts with PowerShell, I closed it down and decided it wasn’t very useful. At the same time I had just started a new job much closer to home.  I had an extra hour available for every workday, but I was accomplishing less than ever.  It felt weird.  Almost everything was in place – so much so that I felt anyone should be able to succeed given these conditions – and yet I wasn’t!  I wasn’t getting to the gym more, I wasn’t spending significantly more time with my daughter and I wasn’t all that much less stressed. I took a while, but after seeing that list and realizing how much was there I recognized that, short of having two clones, I was never going to be done with my to-do list.  What to do?  Simple.  That list must be shorter. With the writing on the wall I decided to categorize the things on my now out of date GTD list and see what I could scrap.  To say it was a punch in the face would like saying Southerners like Barbeque.  “It ain’t dinner unless a pig had to die.”  Right now my daughter is 13 and still listens to me at least pretends to listen when I speak.  I’m not sure how much longer that will last.  Her school is 2.2 miles away from both our home and my office  (For those playing at home, that is a 12 minute Atlanta commute. ). At the end of the day life is about priorities and I’ve finally figured mine out. So until my daughter stops letting me drop her off at school, play taxi-cab for her and her friends, and generally allows me to be seen with her in public… well, I’m not going to have a lot of free time to do much else So what does that mean?  Am I going to stop blogging, writing, speaking, everything?  I don’t know, quite possibly.  Maybe for a while, maybe for a good while.  I have two items in my Professional Development category that I’ve committed to get done (and thankfully they both won’t take up very much time at all).   I’m still going to finish those two and they might result in some interesting content.  But for everything else?  Well following the GTD method those are all marked as “Maybe-Some Day”.]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" class="mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;">﻿</div>
<div>
<p><span style="font-size: xx-large;"><span style="color: #17365d;"><span style="font-family: Cambria;">Getting Priorities Done</span></span></span></p>
</div>
<p><span style="font-size: medium;"><span style="font-family: Calibri;">Last year I kept hearing about all these people using something called GTD (Getting Things Done).  They didn’t talk about it much.  But occasionally one of them would send out an excited tweet mentioning GTD.  I got tired of hearing all these excited tweets and finally decided to dive in.  I had actually purchased the audiobook of GTD years ago but never got around to listening to it.  I was only a few pages into the book when I had the urge to make a big list of everything I have to finish.  I started out putting everything into a spreadsheet.  Everything from “Script new Mount Point Daily Check Job” to “Remember to pickup dry cleaning” was going into this list.  I would frequently realize that I was behind on a certain task; so I’d stop and take care of that item.  </span></span></p>
<p><span style="font-size: medium;"><span style="font-family: Calibri;">After 6 hours I was in love with this technique.  After 18 hours I was slightly overwhelmed.  And after  48 hours I was ready to quit.  I had a list of over 80 items, and adding to that list did help me finish any of those items.  In fact the list left me feeling that life was more out of control than before my to-do items were written on paper.  I couldn’t understand how anyone –let alone all these people I had heard of – could get anything done using method.  Like my first attempts with PowerShell, I closed it down and decided it wasn’t very useful.</span></span></p>
<p><span style="font-size: medium;"><span style="font-family: Calibri;">At the same time I had just started a new job much closer to home.  I had an extra hour available for every workday, but I was accomplishing less than ever.  It felt weird.  Almost everything was in place – <em>so much so that I felt anyone should be able to succeed given these conditions</em> – and yet I wasn’t!  I wasn’t getting to the gym more, I wasn’t spending significantly more time with my daughter and I wasn’t all that much less stressed. </span></span></p>
<p><span style="font-size: medium;"><span style="font-family: Calibri;">I took a while, but after seeing that list and realizing how much was there I recognized that, short of having two clones, I was never going to be done with my to-do list.  What to do?  Simple.  That list must be shorter. With the writing on the wall I decided to categorize the things on my now out of date GTD list and see what I could scrap.  To say it was a punch in the face would like saying Southerners like Barbeque.  “It ain’t dinner unless a pig had to die.”  Right now my daughter is 13 and still <span style="text-decoration: line-through;">listens to me</span> at least pretends to listen when I speak.  I’m not sure how much longer that will last.  Her school is 2.2 miles away from both our home and my office  (For those playing at home, that is a 12 minute Atlanta commute.</span><span style="font-family: Calibri;"> <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ). At the end of the day life is about priorities and I’ve finally figured mine out. So until my daughter stops letting me drop her off at school, play taxi-cab for her and her friends, and generally allows me to be seen with her in public… well, I’m not going to have a lot of free time to do much else <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></span></p>
<p><span style="font-size: medium;"><span style="font-family: Calibri;">So what does that mean?  Am I going to stop blogging, writing, speaking, everything?  I don’t know, quite possibly.  Maybe for a while, maybe for a good while.  I have two items in my Professional Development category that I’ve committed to get done (and thankfully they both won’t take up very much time at all).   I’m still going to finish those two and they might result in some interesting content.  But for everything else?  Well following the GTD method those are all marked as “Maybe-Some Day”.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2011/04/getting-priorities-done/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MEME Monday: Taking a Break</title>
		<link>http://sqlvariant.com/wordpress/index.php/2011/04/meme-monday-taking-a-break/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2011/04/meme-monday-taking-a-break/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 12:55:40 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=2198</guid>
		<description><![CDATA[Taking a break to spend more time with my daughter Dorothy. &#8211; Thanks for the idea Tom]]></description>
			<content:encoded><![CDATA[<p>Taking a break to spend more time with my daughter Dorothy.</p>
<p>&#8211; Thanks for the <a href="http://thomaslarock.com/2011/03/meme-monday/">idea</a> Tom</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2011/04/meme-monday-taking-a-break/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Atlanta User Groups Different December 2010 Dates</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/12/atlanta-user-groups-different-december-2010-dates/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/12/atlanta-user-groups-different-december-2010-dates/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 14:38:00 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/index.php/2010/12/atlanta-user-groups-different-december-2010-dates/</guid>
		<description><![CDATA[For the month of December the meeting dates and what happening for different User Groups has been all rearranged for obvious reason (Christmas vacation).&#160; Here is what’s going on at the three user groups that I attend regularly: Atlanta B/I: Tonight! Atlanta MDF: Holiday Party, Next Wednesday This is a joint party with the following user groups: AtlantaMDF, Atlanta MS Pros, Atlanta .NET, Atlanta PHP, AWDG, Gwinnett .Net, IASA Atlanta, Silverlight Atlanta&#160; Atlanta PowerShell: No meeting this month Topic: BI: Then and Now? Level: Beginner Date: Monday, December 6, 2010 Location: Matrix Resources Dunwoody Office Sponsor: Strategy Companion Corporation Overview: We will begin by taking a look how the focus and characteristics of Business Intelligence have changed over the last 25 years. We will also discuss the recent history of Microsoft&#8217;s focus on BI, and will take an in-depth look at another approach to SQL Server-based BI provided by Strategy Companion Corporation. You will see why companies such as Citigroup, L&#8217;Oreal, Honeywell, DataQuick, and many others have embraced Analyzer, Strategy Companion&#8217;s award-winning front-end to Analysis Services, for their Business Intelligence applications. You&#8217;ll see why SQL Server magazine recently called Analyzer &#34;the best solution to complete the Microsoft BI platform.&#34; (Editor&#8217;s Best Award, December 2009.) And you&#8217;ll learn ways to quickly and add significant value to your SQL Server-based data &#8211; the kind of value business people will be able to see, understand, and appreciate. Speaker: Bob Abernethy Bob Abernethy is SVP &#38; GM of Strategy Companion Corporation. A veteran of Oracle Corporation and Siebel Systems, Bob brings over twenty years of software industry experience to his discussion with customers about their Business Intelligence implementations. Bob received his Bachelor of Science degree from Cornell University in New York and his Masters of Management Information Systems from West Coast University in Southern California. the current president of the Kansas City SQL Server Users Group. Atlanta Technical Community Holiday Party This year, Microsoft, will bring the Atlanta technical community together not only in spirit, but in holiday fun as well. We invite you to join us for a holiday celebration at {three} Sheets on Wednesday, December 15 at 7pm. This will be the perfect event for networking and seeing what&#8217;s going on with the different technologies in the community. When you&#8217;re not mingling, have some fun playing the new Xbox Kinect. Or enjoy some of the delicious appetizers provided by Microsoft. Don&#8217;t forget, it&#8217;s the giving season! It&#8217;s not required, but please bring an new, unwrapped toy to give to Toys for Tots. We would like to do our part for this wonderful cause.]]></description>
			<content:encoded><![CDATA[<p>For the month of December the meeting dates and what happening for different User Groups has been all rearranged for obvious reason (Christmas vacation).&#160; Here is what’s going on at the three user groups that I attend regularly:</p>
<hr align="center" size="2" width="100%" />
<blockquote>
<p><strong><u><font size="3">Atlanta B/I:</font></u></strong> <a href="http://atlantabi.sqlpass.org/">Tonight!</a>      <br /><strong><u><font size="3">Atlanta MDF:</font></u></strong> <a href="http://atlholidayparty.eventbrite.com/">Holiday Party, Next Wednesday</a>      <br />This is a joint party with the following user groups:      <br />AtlantaMDF, Atlanta MS Pros, Atlanta .NET, Atlanta PHP, AWDG, Gwinnett .Net, IASA Atlanta, Silverlight Atlanta&#160; <br /><strong><u><font size="3">Atlanta PowerShell:</font></u></strong> No meeting this month      </p>
</blockquote>
<hr align="center" size="2" width="100%" />
<p><b>Topic: </b>BI: Then and Now?    <br /><i>Level</i><i>: </i><i>Beginner     <br /></i><b>Date: </b>Monday, December 6, 2010    <br /><b>Location: </b>Matrix Resources Dunwoody Office    <br /><b>Sponsor: </b>Strategy Companion Corporation</p>
<p><b>Overview:     <br /></b>We will begin by taking a look how the focus and characteristics of Business Intelligence have changed over the last 25 years. We will also discuss the recent history of Microsoft&#8217;s focus on BI, and will take an in-depth look at another approach to SQL Server-based BI provided by Strategy Companion Corporation. You will see why companies such as Citigroup, L&#8217;Oreal, Honeywell, DataQuick, and many others have embraced Analyzer, Strategy Companion&#8217;s award-winning front-end to Analysis Services, for their Business Intelligence applications. You&#8217;ll see why SQL Server magazine recently called Analyzer &quot;the best solution to complete the Microsoft BI platform.&quot; (Editor&#8217;s Best Award, December 2009.) And you&#8217;ll learn ways to quickly and add significant value to your SQL Server-based data &#8211; the kind of value business people will be able to see, understand, and appreciate.</p>
<p><b>Speaker: Bob Abernethy     <br /></b>Bob Abernethy is SVP &amp; GM of Strategy Companion Corporation. A veteran of Oracle Corporation and Siebel Systems, Bob brings over twenty years of software industry experience to his discussion with customers about their Business Intelligence implementations. Bob received his Bachelor of Science degree from Cornell University in New York and his Masters of Management Information Systems from West Coast University in Southern California. the current president of the Kansas City SQL Server Users Group.<br />
<hr align="center" size="2" width="100%" /></p>
<h3>Atlanta Technical Community Holiday Party</h3>
<p>This year, Microsoft, will bring the Atlanta technical community together not only in spirit, but in holiday fun as well. We invite you to join us for a holiday celebration at <a href="http://www.threesheetsatlanta.com/">{three} Sheets</a> on Wednesday, December 15 at 7pm. </p>
<p>This will be the perfect event for networking and seeing what&#8217;s going on with the different technologies in the community. When you&#8217;re not mingling, have some fun playing the new Xbox Kinect. Or enjoy some of the delicious appetizers provided by Microsoft.</p>
<p>Don&#8217;t forget, it&#8217;s the giving season! It&#8217;s not required, but please bring an new, unwrapped toy to give to Toys for Tots. We would like to do our part for this wonderful cause.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/12/atlanta-user-groups-different-december-2010-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding SQL Servers with PowerShell</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/09/finding-sql-servers-with-powershell/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/09/finding-sql-servers-with-powershell/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 13:06:33 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=1403</guid>
		<description><![CDATA[Have you ever clicked a drop-down to connect to one of your databases and noticed an instance that you don’t remember setting up? Or maybe a server that was recently setup for some new application in your organization, that no one mentioned it needing SQL, but you come back from your day off and notice that server is now one of your available SQL Servers? If your office is like mine those things happen all too often. There are several different methods to finding out just how many SQL Servers are running on your “network” right now. Each method has pros and cons. But the biggest problem that I run into is: ‘what is defined as the network?’ Is it just the network of computers at your office? Does it include servers at your collocation facility? What if you have a completely separate domain for Development? The first method I’m going to point out to you is really easy to use but it’s results vary depending on your network rights and where you run it from, but, it still can find machines that you didn’t even know about so lets have a look. Wait, why would I start out with an example that&#8217;s so imperfect? Because this method uses the same .Net components that are used to generate the list of servers you see when you click on the “&#60;Browse for more&#62;” option in the drop down of the SSMS connection window*. This means that you’ll see a list that you recognize (probably). Fire up the ISE and kick off this command: [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() Now if you&#8217;re just on you laptop or sitting at home or something you&#8217;ll probably get a nice short list like this: But if you’re at work, you’ll get back a much longer list; maybe even longer than you expected Heck how many servers just came back anyways! The answer to that question is really easy, just pipe the output of the command to Measure-Object and find out like this: [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() &#124; Measure-Object and you’ll get some output like this: Now like I said earlier, these results are going to vary depending on where you run the command so here’s what I recommend. Run this command from your desk. Then try it from a machine that is on a different network segment that you’re usually on – like a Dev domain. Then go home, VPN in and run the command, see how many you get back now. OK that’s great but with all of these variances can I do anything useful with this example? Sure you can. Take your results and put them in a table. First build a simple table to use: CREATE TABLE FoundSQLServers ( ServerName VARCHAR(128), InstanceName VARCHAR(128), IsClustered VARCHAR(3), VersionNumber VARCHAR(64) ) Then build some insert statements off of the results like this: $SQL = [System.Data.Sql.SqlDataSourceEnumerator]::Instance.GetDataSources() &#124; ` foreach { "INSERT INTO dbo.FoundSQLServers VALUES ('$($_.ServerName)', '$($_.InstanceName)', '$($_.IsClustered)', '$($_.Version)')" ` &#62;&#62; C:\Temp\INSERTFoundSQLServers.sql } To open up the file that was just created in Management Studio just run this Ssms.exe C:\Temp\INSERTFoundSQLServers.sql …and you should get some nice insert statements for that table like this: INSERT INTO dbo.FoundSQLServers VALUES ('WIN7ULT', 'KILIMANJARO', 'No', '10.50.1600.1') Go ahead and insert those rows into your table, maybe even give the table a little bit different name like: FoundSQLsFromVPN or FoundSQLsFromDev. Run some queries to compare the results you get from different network segments; see which servers we found both at home (through VPN) and at work from your desk; and more importantly which ones are only found from one of those locations. We’ll take a look at a couple of different methods I’ve learned about in future posts but I wanted to get you started with finding out how well this method finds your servers and knowing how your network location can affect it. Just in case you’ve recently started a new job or something Special Thanks: I just wanted to take a moment to thank Grant Fritchey ( blog &#124; twitter ) for doing a tech-check on this post and helping convey my points a little more concisely. * Small Disclaimer: I was told that it&#8217;s the same .Net component used by applications like SSMS but since I don&#8217;t work at Microsoft and I&#8217;m not a developer I wouldn&#8217;t even know where to start to verify this but the list produced has always been very similar or down-right identical.]]></description>
			<content:encoded><![CDATA[<p><a href="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image.png"><img title="image" style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image_thumb.png" border="0" alt="image" width="331" height="241" align="right" /></a> Have you ever clicked a drop-down to connect to one of your databases and noticed an instance that you don’t remember setting up?  Or maybe a server that was recently setup for some new application in your organization, that no one mentioned it needing SQL, but you come back from your day off and notice that server is now one of your available SQL Servers?  If  your office is like mine those things happen all too often.</p>
<p>There are several different methods to finding out just how many SQL Servers are running on your “network” right now. Each method has pros and cons. But the biggest problem that I run into is: ‘what is defined as the network?’  Is it just the network of computers at your office? Does it include servers at your collocation facility?  What if you have a completely separate domain for Development?</p>
<p>The first method I’m going to point out to you is really easy to use but it’s results vary depending on your network rights and where you run it from, but, it still can <span style="color: #000080;"><strong>find machines that you didn’t even know about</strong></span> so lets have a look.  <em>Wait, why would I start out with an example that&#8217;s so imperfect?</em> Because this method uses the same .Net components that are used to generate the list of servers you see when you click on the <strong>“&lt;Browse for more&gt;”</strong> option in the drop down of the SSMS connection window<span style="color: #ff0000;">*</span>.  This means that you’ll see a list that you recognize (probably).  Fire up the ISE and kick off this command:</p>
<pre style="width: 569px; height: 43px;" class="PowerShellColorizedScript"><span style="color: #008080;">[System.Data.Sql.SqlDataSourceEnumerator]</span><span style="color: #a9a9a9;">::</span><span style="color: #000000;">Instance</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">GetDataSources</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></pre>
<p>Now if you&#8217;re just on you laptop or sitting at home or something you&#8217;ll probably get a nice short list like this:  <a href="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image10.png"><img title="image" style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image10_thumb.png" border="0" alt="image" width="540" height="214" align="right" /></a> But if you’re at work, you’ll get back a much longer list; maybe even longer than you expected <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Heck how many servers just came back anyways! The answer to that question is really easy, just pipe the output of the command to <span style="color: #0000ff;">Measure-Object</span> and find out like this:</p>
<pre style="width: 539px; height: 45px;" class="PowerShellColorizedScript"><span style="color: #008080;">[System.Data.Sql.SqlDataSourceEnumerator]</span><span style="color: #a9a9a9;">::</span><span style="color: #000000;">Instance</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">GetDataSources</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Measure-Object</span></pre>
<p>and you’ll get some output like this:</p>
<p><a href="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image15.png"><img title="image" style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://sqlvariant.com/wordpress/wp-content/uploads/2010/09/image15_thumb.png" border="0" alt="image" width="540" height="120" align="right" /></a> Now like I said earlier, these results are going to vary depending on where you run the command so here’s what I recommend.  Run this command from your desk.  Then try it from a machine that is on a different network segment that you’re usually on – like a Dev domain.  Then go home, VPN in and run the command, see how many you get back now.</p>
<p>OK that’s great but with all of these variances <strong>can I do anything useful with this example?</strong> <span style="text-decoration: underline;">Sure you can</span>.  Take your results and put them in a table.  First build a simple table to use:</p>
<p><code style="font-size: 12px;"><span style="color: blue;">CREATE TABLE </span><span style="color: black;">FoundSQLServers </span><span style="color: gray;">(<br />
</span><span style="color: black;">ServerName </span><span style="color: blue;">VARCHAR</span><span style="color: gray;">(</span><span style="color: black;">128</span><span style="color: gray;">),<br />
</span><span style="color: black;">InstanceName </span><span style="color: blue;">VARCHAR</span><span style="color: gray;">(</span><span style="color: black;">128</span><span style="color: gray;">),<br />
</span><span style="color: black;">IsClustered </span><span style="color: blue;">VARCHAR</span><span style="color: gray;">(</span><span style="color: black;">3</span><span style="color: gray;">),<br />
</span><span style="color: black;">VersionNumber </span><span style="color: blue;">VARCHAR</span><span style="color: gray;">(</span><span style="color: black;">64</span><span style="color: gray;">)<br />
)<br />
</span></code></p>
<p>Then build some insert statements off of the results like this:</p>
<pre style="width: 884px; height: 109px;" class="PowerShellColorizedScript"><span style="color: #ff4500;">$SQL</span> <span style="color: #a9a9a9;">=</span> <span style="color: #008080;">[System.Data.Sql.SqlDataSourceEnumerator]</span><span style="color: #a9a9a9;">::</span><span style="color: #000000;">Instance</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">GetDataSources</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #a9a9a9;">|</span> <span style="color: #000000;">`
</span><span style="color: #0000ff;">foreach</span> <span style="color: #000000;">{</span>
<span style="color: #8b0000;">"INSERT INTO dbo.FoundSQLServers VALUES ('$($_.ServerName)', '$($_.InstanceName)', '$($_.IsClustered)', '$($_.Version)')"</span> <span style="color: #000000;">`
</span><span style="color: #a9a9a9;">&gt;&gt;</span> <span style="color: #8a2be2;">C:\Temp\INSERTFoundSQLServers.sql</span>
        <span style="color: #000000;">}</span></pre>
<p>To open up the file that was just created in Management Studio just run this</p>
<pre class="PowerShellColorizedScript"><span style="color: #0000ff;">Ssms.exe</span> <span style="color: #8a2be2;">C:\Temp\INSERTFoundSQLServers.sql</span></pre>
<p>…and you should get some nice insert statements for that table like this:</p>
<p><code style="font-size: 12px;"><span style="color: blue;">INSERT INTO </span><span style="color: black;">dbo.FoundSQLServers </span><span style="color: blue;">VALUES </span><span style="color: gray;">(</span><span style="color: red;">'WIN7ULT'</span><span style="color: gray;">, </span><span style="color: red;">'KILIMANJARO'</span><span style="color: gray;">, </span><span style="color: red;">'No'</span><span style="color: gray;">, </span><span style="color: red;">'10.50.1600.1'</span><span style="color: gray;">)</span></code></p>
<div><code style="font-size: 12px;"><span style="color: gray;"> </span></code></div>
<p>Go ahead and insert those rows into your table, maybe even give the table a little bit different name like: <span style="color: black;">FoundSQLsFromVPN</span> or <span style="color: black;">FoundSQLsFromDev</span>.  Run some queries to compare the results you get from different network segments; see which servers we found both at home (through VPN) and at work from your desk; and more importantly which ones are only found from one of those locations.  We’ll take a look at a couple of different methods I’ve learned about in future posts but I wanted to get you started with finding out how well this method finds your servers and knowing how your network location can affect it.  Just in case you’ve recently started a new job or something <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><span style="text-decoration: underline;">Special Thanks</span>: I just wanted to take a moment to thank Grant Fritchey ( <a href="http://scarydba.wordpress.com/">blog</a> | <a href="http://twitter.com/GFritchey">twitter</a> ) for doing a tech-check on this post and helping convey my points a little more concisely.</p>
<p><span style="color: #ff0000;">*</span> <span style="text-decoration: underline;">Small Disclaimer</span>:  I was told that it&#8217;s the same .Net component used by applications like SSMS but since I don&#8217;t work at Microsoft and I&#8217;m not a developer I wouldn&#8217;t even know where to start to verify this but the list produced has always been very similar or down-right identical.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/09/finding-sql-servers-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>24 Hours of PASS: Summit Preview and Me?</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/09/24-hours-of-pass-summit-preview-and-me/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/09/24-hours-of-pass-summit-preview-and-me/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 02:56:56 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=1431</guid>
		<description><![CDATA[I *Might* be speaking at the 24 Hours of PASS: Summit Preview event.  I say “Might” because I’m speaker #25, the first Alternate.  The lineup is pretty freaking awesome so I hope that no one cancels but if they do I’ve got some fresh PowerShell for SQL Server content to show everyone.  I’ll also be moderating questions for Kalen Delaney’s session on Locking tomorrow at 3pm EDT.  Make sure you pick up a case of Red Bull one your way to work because you’re not going to want to miss a minute of this FREE TRAINING. Also, this time the event has been super-sized with 4 additional Microsoft sessions so if you already signed up and you didn’t know that, check them out; they do require additional registration.   And yes, technically that makes me speaker #29 so let’s just go ahead and change that to speaker #1A 24 Hours of PASS: Summit PreviewSeptember 15, 2010 Session 01  (DBA) &#8211; Start time 12:00 GMT on September 15 I Am a DBA &#8211; Why Should I Care About SQL Server 2008 R2? Presenter: Peter Ward Attend Meeting Now Session 02 (DBA) – Start time 13:00 GMT on September 15 Gather SQL Server Performance Data with PowerShell Presenter: Allen White Attend Meeting Now Session 03 (BI) – Start time 14:00 GMT on September 15 Why Data Warehousing Projects Fail (And What You Can Do About It) Presenter: Craig Utley Attend Meeting Now Session 04 (DBA) – Start time 15:00 GMT on September 15 Hardware 201: Selecting and Sizing Database Hardware for OLTP Performance Presenter: Glenn Berry Attend Meeting Now Session 05 (PD) – Start time 16:00 GMT on September 15 Managing Teams Presenter: Andy Leonard Attend Meeting Now Session 06 (DBA) – Start time 17:00 GMT on September 15 Enforcing Compliance with Policy-Based Management Presenter: Ken Simmons Attend Meeting Now Session 07 (BI) &#8211; Start time 18:00 GMT on September 15 Intro to MDX Presenter: Stacia Misner Attend Meeting Now Session 08 (Dev) – Start time 19:00 GMT on September 15 Isolation vs Concurrency: What Are the Choices? Presenter: Kalen Delaney Attend Meeting Now Session 09 (DBA) – Start time 20:00 GMT on September 15 Identifying Costly Queries Presenter: Grant Fritchey Attend Meeting Now Session 10 (PD) – Start time 21:00 GMT on September 15 How to Rock Your Presentations Presenter: Douglas McDowell Attend Meeting Now Session 11 (Dev) – Start time 22:00 GMT on September 15 eXtreame Database Design Presenter: Paul Nielsen Attend Meeting Now Session 12 (BI) – Start time 23:00 GMT on September 15 Delivering KPIs with Analysis Services Presenter: Peter Myers Attend Meeting NowMicrosoft Bonus Session &#8211; Start time 00:00 GMT on September 16 Peer-to-Peer Transactional Replication Presenter: Jean-Yves Devant Attend Meeting Now Microsoft Bonus Session &#8211; Start time 01:00 on September 16 TempDB Configuration and Management Presenter: Dipti Sangani Attend Meeting Now September 16, 2010 Session 13 (BI) – Start time 12:00 GMT on September 16 Upgrading DTS Packages to SSIS Presenter: Brian Knight Attend Meeting Now Session 14 (DBA): Start time 13:00 GMT on September 16 Statistics: How to Prove Everything but the Truth Presenter: Kevin Goode Attend Meeting Now Session 15 (BI) – Start time 14:00 GMT on September 16 SQLBI Methodology Presenters: Alberto Ferrari and Marco Russo Attend Meeting Now Session 16 (PD) – Start time 15:00 GMT on September 16 Preparing for Your Next Job Presenter: Chris Shaw Attend Meeting Now Session 17 (DBA) – Start time 16:00 GMT on September 16 Storage for the DBA Presenter: Denny Cherry Attend Meeting Now Session 18 (DBA) &#8211; Start time 17:00 GMT on September 16 SQL Server 2008 R2 StreamInsight Presenter: Klaus Aschenbrenner Attend Meeting Now Session 19 (Dev) – Start time 18:00 GMT on September 16 T-SQL Brush-Up: The Best Things You Forgot You Knew Presenter: Jen McCown Attend Meeting Now Session 20 (DBA) &#8211; Start time 19:00 GMT on September 16 Automate Your Database Maintenance Presenter: Brad McGehee Attend Meeting Now Session 21 (Dev) – Start time 20:00 GMT on September 16 Relational Database Design for Utter Newbies Presenter: Kevin Kline Attend Meeting Now Session 22 (BI) – Start time 21:00 GMT on September 16 Zero to Cube: Fast Track to Analysis Services Development Presenter: Adam Jorgensen Attend Meeting Now Session 23 (Dev) – Start time 22:00 GMT on September 16 Top 10 Design Mistakes Presenter: Louis Davidson Attend Meeting Now Session 24 (Dev) – Start time 23:00 GMT on September 16 Understanding SARGability Presenter: Rob Farley Attend Meeting Now Microsoft Bonus Session &#8211; Start time 00:00 GMT on September 17 SQL Server R2 Utility Presenter: Eddie Fong Attend Meeting Now Microsoft Bonus Session &#8211; Start time 01:00 GMT on September 17 SQL Server Security Tips &#38; Tricks Presenter: Li-Sung Lee, Microsoft Attend Meeting Now http://www.sqlpass.org/24hours/Fall2010]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sqlpass.org/24hours/Fall2010"><img style="display: inline; margin-left: 0px; margin-right: 0px;" src="http://www.sqlpass.org/Portals/64/Fall2010/24HrsPASS_984x183.jpg" border="0" alt="" width="660" height="122" align="right" /></a> I <em>*Might*</em> be speaking at the <strong><a href="http://www.sqlpass.org/24hours/Fall2010">24 Hours of PASS: Summit Preview</a></strong> event.  I say “Might” because I’m speaker #25, the first Alternate.  The lineup is pretty freaking awesome so I hope that no one cancels but if they do I’ve got some fresh PowerShell for SQL Server content to show everyone.  I’ll also be moderating questions for Kalen Delaney’s session on Locking tomorrow at 3pm EDT.  Make sure you pick up a case of Red Bull one your way to work because you’re not going to want to miss a minute of this FREE TRAINING.</p>
<p>Also, this time the event has been super-sized with 4 additional Microsoft sessions so if you already signed up and you didn’t know that, check them out; they do require additional registration.   And yes, technically that makes me speaker #29 so let’s just go ahead and change that to speaker #1A <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3><strong>24 Hours of PASS: Summit Preview<strong>September 15, 2010<br />
</strong>Session 01  (DBA) &#8211; Start time 12:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/IAmaDBAWhyShouldICareaboutSQLServer20.aspx"><strong>I Am a DBA &#8211; Why Should I Care About SQL Server 2008 R2?</strong></a><br />
Presenter: Peter Ward<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=9DR3Z9&amp;role=attend&amp;pw=g%5E5s%2C%2B%7D4P">Attend Meeting Now</a><br />
Session 02 (DBA) – Start time 13:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/GatherSQLServerPerformanceDatawithPowerShell.aspx"><strong>Gather SQL Server Performance Data with PowerShell</strong></a><br />
Presenter: Allen White<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=MJN64W&amp;role=attend&amp;pw=G%29%3B9Gmq4p">Attend Meeting Now</a><br />
Session 03 (BI) – Start time 14:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/WhyDataWarehousingProjectsFailandWhatYouC.aspx"><strong>Why Data Warehousing Projects Fail (And What You Can Do About It)</strong></a><br />
Presenter: Craig Utley<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=PW8594&amp;role=attend&amp;pw=F%29t%213b7tN">Attend Meeting Now</a><br />
Session 04 (DBA) – Start time 15:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/Hardware201SelectingandSizingDatabaseHardwa.aspx"><strong>Hardware 201: Selecting and Sizing Database Hardware for OLTP Performance</strong></a><br />
Presenter: Glenn Berry<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=NR6SNG&amp;role=attend&amp;pw=c%2Fx6%5EW%3FCz">Attend Meeting Now</a><br />
Session 05 (PD) – Start time 16:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/ManagingTeams.aspx"><strong>Managing Teams</strong></a><br />
Presenter: Andy Leonard<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=8MMKSG&amp;role=attend&amp;pw=QHs_2%252Nd">Attend Meeting Now</a><br />
Session 06 (DBA) – Start time 17:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/EnforcingCompliancewithPolicyBasedManagement.aspx"><strong>Enforcing Compliance with Policy-Based Management</strong></a><br />
Presenter: Ken Simmons<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=MZBQQ6&amp;role=attend&amp;pw=Rn%28%26r%29zN4">Attend Meeting Now</a><br />
Session 07 (BI) &#8211; Start time 18:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/IntrotoMDX.aspx"><strong>Intro to MDX</strong></a><br />
Presenter: Stacia Misner<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=NQ6CC6&amp;role=attend&amp;pw=K%24%40B.%25%2F2f">Attend Meeting Now</a><br />
Session 08 (Dev) – Start time 19:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/IsolationvsConcurrencyWhatAretheChoices.aspx"><strong>Isolation vs Concurrency: What Are the Choices?</strong></a><br />
Presenter: Kalen Delaney<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=7RT7W7&amp;role=attend&amp;pw=8%27r%26%7BP-Ss">Attend Meeting Now</a><br />
Session 09 (DBA) – Start time 20:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/IdentifyingCostlyQueries.aspx"><strong>Identifying Costly Queries</strong></a><br />
Presenter: Grant Fritchey<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=4NT4NW&amp;role=attend&amp;pw=RW%28s%29p38B">Attend Meeting Now</a><br />
Session 10 (PD) – Start time 21:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/HowtoRockYourPresentations.aspx"><strong>How to Rock Your Presentations</strong></a><br />
Presenter: Douglas McDowell<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=QW7D5D&amp;role=attend&amp;pw=2%7E-8.%3E%5DGg">Attend Meeting Now</a><br />
Session 11 (Dev) – Start time 22:00 GMT on September 15<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/eXtreameDatabaseDesign.aspx"><strong>eXtreame Database Design</strong></a><br />
Presenter: Paul Nielsen<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=GM97M9&amp;role=attend&amp;pw=Qm%25%3DT5%3FJZ">Attend Meeting Now</a><br />
Session 12 (BI) – Start time 23:00 GMT on September 15<br />
<strong><a href="http://www.sqlpass.org/24hours/fall2010/Home/DeliveringKPIswithAnalysisServices.aspx">Delivering KPIs with Analysis Services</a></strong><br />
Presenter: Peter Myers<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=7N3N9P&amp;role=attend&amp;pw=2%23%28%22cCT%2Cw">Attend Meeting Now</a>Microsoft Bonus Session &#8211; Start time 00:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/PeertoPeerTransactionalReplication.aspx"><strong>Peer-to-Peer Transactional Replication</strong></a><br />
Presenter: Jean-Yves Devant<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=RFWDN7&amp;role=attend&amp;pw=fR2JwM8.q">Attend Meeting Now</a></p>
<p>Microsoft Bonus Session &#8211; Start time 01:00 on September 16<br />
<strong><a href="http://www.sqlpass.org/24hours/fall2010/Home/TempDBConfigurationandManagement.aspx">TempDB Configuration and Management</a></strong><br />
Presenter: Dipti Sangani<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=J7NC7P&amp;role=attend&amp;pw=5_4xs%3Ag%27J">Attend Meeting Now</a></p>
<p><strong>September 16, 2010</strong></p>
<p><strong><br />
</strong></p>
<p>Session 13 (BI) – Start time 12:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/UpgradingDTSPackagestoSSIS.aspx"><strong>Upgrading DTS Packages to SSIS</strong></a><br />
Presenter: Brian Knight<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=29NFQF&amp;role=attend&amp;pw=s%23%5E8dh%40%29Z">Attend Meeting Now</a><br />
Session 14 (DBA): Start time 13:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/StatisticsHowtoProveEverythingbuttheTruth.aspx"><strong>Statistics: How to Prove Everything but the Truth</strong></a><br />
Presenter: Kevin Goode<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=S2F53W&amp;role=attend&amp;pw=Z7K%40%3Cbf%7ES">Attend Meeting Now</a><br />
Session 15 (BI) – Start time 14:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/SQLBIMethodology.aspx"><strong>SQLBI Methodology</strong></a><br />
Presenters: Alberto Ferrari and Marco Russo<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=Z54CJQ&amp;role=attend&amp;pw=d%3Ez9%7Ejd%5BX">Attend Meeting Now</a><br />
Session 16 (PD) – Start time 15:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/PreparingforYourNextJob.aspx"><strong>Preparing for Your Next Job</strong></a><br />
Presenter: Chris Shaw<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=B45454&amp;role=attend&amp;pw=G%27FksmG%3A4">Attend Meeting Now</a><br />
Session 17 (DBA) – Start time 16:00 GMT on September 16<br />
<strong><a href="http://www.sqlpass.org/24hours/fall2010/Home/StoragefortheDBA.aspx">Storage for the DBA</a></strong><br />
Presenter: Denny Cherry<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=DQW7WB&amp;role=attend&amp;pw=KMZZ%40h%26b9">Attend Meeting Now</a><br />
Session 18 (DBA) &#8211; Start time 17:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/SQLServer2008R2StreamInsight.aspx"><strong>SQL Server 2008 R2 StreamInsight</strong></a><br />
Presenter: Klaus Aschenbrenner<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=STG9N6&amp;role=attend&amp;pw=4%3CX8%26Cc%3Et">Attend Meeting Now</a><br />
Session 19 (Dev) – Start time 18:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/TSQLBrushupTheBestThingsYouForgotYouKne.aspx"><strong>T-SQL Brush-Up: The Best Things You Forgot You Knew</strong></a><br />
Presenter: Jen McCown<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=HNSB2D&amp;role=attend&amp;pw=nF%26%2B*Qt-7">Attend Meeting Now</a><br />
Session 20 (DBA) &#8211; Start time 19:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/AutomateYourDatabaseMaintenanceUsingOlaHalle.aspx"><strong>Automate Your Database Maintenance</strong></a><br />
Presenter: Brad McGehee<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=QS7KCZ&amp;role=attend&amp;pw=J%28%28m%7EB%228N">Attend Meeting Now</a><br />
Session 21 (Dev) – Start time 20:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/RelationalDatabaseDesignforUtterNewbies.aspx"><strong>Relational Database Design for Utter Newbies</strong></a><br />
Presenter: Kevin Kline<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=D6J5SM&amp;role=attend&amp;pw=s%3ASHCx3%405">Attend Meeting Now</a><br />
Session 22 (BI) – Start time 21:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/ZerotoCubeFastTracktoAnalysisServicesDeve.aspx"><strong>Zero to Cube: Fast Track to Analysis Services Development</strong></a><br />
Presenter: Adam Jorgensen<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=RM6CRM&amp;role=attend&amp;pw=wN2%40CK%21%2F3">Attend Meeting Now</a><br />
Session 23 (Dev) – Start time 22:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/Top10DesignMistakes.aspx"><strong>Top 10 Design Mistakes</strong></a><br />
Presenter: Louis Davidson<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=24BFRC&amp;role=attend&amp;pw=c%25%267%7E%22QWG">Attend Meeting Now</a><br />
Session 24 (Dev) – Start time 23:00 GMT on September 16<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/UnderstandingSARGabilitytoMakeYourQueriesRun.aspx"><strong>Understanding SARGability</strong></a><br />
Presenter: Rob Farley<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=64279N&amp;role=attend&amp;pw=w%2B%3DNJ2f.x">Attend Meeting Now</a></p>
<p>Microsoft Bonus Session &#8211; Start time 00:00 GMT on September 17<br />
<strong><a href="http://www.sqlpass.org/24hours/fall2010/Home/SQLServerR2Utility.aspx">SQL Server R2 Utility</a></strong><br />
Presenter: Eddie Fong<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=55J7D5&amp;role=attend&amp;pw=M%22fc7BW%7Dw">Attend Meeting Now</a></p>
<p>Microsoft Bonus Session &#8211; Start time 01:00 GMT on September 17<br />
<a href="http://www.sqlpass.org/24hours/fall2010/Home/SQLServerSecurityTipsTricks.aspx"><strong>SQL Server Security Tips &amp; Tricks</strong></a><br />
Presenter: Li-Sung Lee, Microsoft<br />
<a href="https://www.livemeeting.com/cc/8000181573/join?id=WP2KZ9&amp;role=attend&amp;pw=JKJ%5E.d%7B2c">Attend Meeting Now</a></p>
<p><a title="http://www.sqlpass.org/24hours/Fall2010" href="http://www.sqlpass.org/24hours/Fall2010">http://www.sqlpass.org/24hours/Fall2010</a></p>
<p></strong></h3>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/09/24-hours-of-pass-summit-preview-and-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Saturday Nashville Code and Slides</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/08/sql-saturday-nashville-code-and-slides/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/08/sql-saturday-nashville-code-and-slides/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 11:38:19 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=1361</guid>
		<description><![CDATA[Wow.  I think Nashville may have just thrown down the gauntlet and tried to steal the title from Atlanta for ‘Best Attendee Shirt’.  It’s pretty sweet and I can’t wait to wear mine.  The speaker shirt was excellent as well; I may wear mine to work next Friday.  Unfortunately I couldn’t stick around because I had a date with history but as promised, here are the scripts and slides I used. As for the session itself.  I got several compliments and saw quite a few good tweets on twitter but I have to say I could have done better.  *As always* I tried showing off a script that I had never dived into during a SQL event and it ended up generating more questions than I expected.  It was a little out of sequence with my normal routine (hey you have to try new things) and unfortunately I realized afterwards that it should have been the 4th script that I demoed not the second.  BUT.  The questions that were asked were great and it was great feedback as to what people were able to pick up on without ever having seen PowerShell before. I will reseed this scripts for my presentation tonight at the Columbus, GA chapter.  Who know, maybe if I get it right Louis will let me come back and do the full session after the Summit. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://sqlvariant.com/wordpress/wp-content/uploads/2010/08/SQLSaturdayNashville2010.jpg"><img style="display: inline; margin-left: 0px; margin-right: 0px; border: 0px;" src="http://sqlvariant.com/wordpress/wp-content/uploads/2010/08/SQLSaturdayNashville2010_thumb.jpg" border="0" alt="" width="364" height="274" align="right" /></a> Wow.  I think Nashville may have just thrown down the gauntlet and tried to steal the title from Atlanta for ‘Best Attendee Shirt’.  It’s pretty sweet and I can’t wait to wear mine.  The speaker shirt was excellent as well; I may wear mine to work next Friday.  Unfortunately I couldn’t stick around because I had a date with <a href="http://www.nascar.com/2010/news/opinion/08/22/retro.racing.maumann.kybusch.bristol.history/index.html">history</a> but as promised, here are the <a href="http://bit.ly/PoShCode">scripts</a> and <a href="http://bit.ly/a3iPFA">slides</a> I used.</p>
<p>As for the session itself.  I got several compliments and saw quite a few good tweets on twitter but I have to say I could have done better.  *<em>As always*</em> I tried showing off a script that I had never dived into during a SQL event and it ended up generating more questions than I expected.  It was a little out of sequence with my normal routine (hey you have to try new things) and unfortunately I realized afterwards that it should have been the 4th script that I demoed not the second.  BUT.  The questions that were asked were great and it was great feedback as to what people were able to pick up on without ever having seen PowerShell before.</p>
<p>I will reseed this scripts for my presentation tonight at the <a href="http://sqlvariant.com/wordpress/index.php/2010/08/ill-be-speaking-at-the-columbus-ga-pass-chapter/">Columbus, GA</a> chapter.  Who know, maybe if I get it right <a href="http://sqlblog.com/blogs/louis_davidson/default.aspx">Louis</a> will let me come back and do the full session after the Summit.  <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/08/sql-saturday-nashville-code-and-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get-Sales &#124; Out-Map = T-SQL Tuesday #005 &#8211; Reporting</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/04/get-sales-out-map-t-sql-tuesday-005-reporting/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/04/get-sales-out-map-t-sql-tuesday-005-reporting/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 22:51:00 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[T-SQL Tuesday]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=820</guid>
		<description><![CDATA[For this month’s T-SQL Tuesday I thought I’d go with something useful that I’ve been meaning to blog about for weeks now.  While listening to the PowerScripting Podcast a few month’s back I heard about a product that sounded really cool for simple data visualization and quickly showing people just how powerful PowerShell is.  Now to get this to work using all the code on the screen you’ll at least have to download the trial version of of the Power Gadgets however even without the method I describe is important if you’re new to this type of reporting (desktop gadgets). Turns out this little piece of software had even more packed into it than I was hoping for.  I needed a piece of software that could allow me to pipe data to it to display it in a desktop gadget as a list. Before I show you how to setup this quick-and-easy tool to create desktop gadgets I want to issue a warning against setting up this type of thing directly against your production database; read all the way through or don’t blame me when you bring your production environment down. What you want to do (at the very least) is to have all of the gadgets that you deploy read from a central location where they only have to scoop up the results of the query that you’re trying to report on, and not 400 gadgets running the query itself.  An easy way to accomplish this would be to run the query in an Agent Job against your production environment (assuming that you don’t have a live reporting copy) and deposit those results in a table.  Let’s see if we can step through an example with the AdventureWorks database. If this below were your query to show your sales for today… SELECT SUM(SOD.OrderQty) AS &#8216;OrderQty&#8216;, s.StateProvinceCode   FROM Sales.SalesOrderHeader SOH  INNER JOIN Sales.SalesOrderDetail SOD     ON SOH.SalesOrderID = SOD.SalesOrderID   JOIN Production.Product P     ON SOD.ProductID = P.ProductID   JOIN Person.Address A     ON SOH.BillToAddressID = A.AddressID   JOIN Person.StateProvince S     ON A.StateProvinceID = S.StateProvinceID  WHERE SOH.OrderDate = &#8217;2001-07-01 00:00:00.000&#8242; &#8211;&#60;&#8212;This would get GETDATE() or something  GROUP BY S.StateProvinceCode …you would really want to create an Agent Job to load that into a table and select off of the table.  For simplicity we’ll leave out the job and just use the queries. /* &#60;Do this part only one time&#62;*/ USE [AdventureWorks] GO CREATE SCHEMA [Report] AUTHORIZATION [dbo] GO CREATE TABLE [Report].[TodaysSalesOrderByState]( [OrderQty] [int] NULL, [StateProvinceCode] [nchar](3) NOT NULL, [LastLoadTime] DATETIME NOT NULL CONSTRAINT [DF_LastLoadTime] DEFAULT GETDATE() ) ON [PRIMARY] /* &#60;/Do this part only one time&#62;*/ Then this… /* &#60;This is the part that would eventually go into an agent job, along with a delete statement before it that was in the same transaction&#62;*/  INSERT INTO Report.TodaysSalesOrderByState ( [OrderQty], [StateProvinceCode]) SELECT SUM(SOD.OrderQty) AS &#8216;OrderQty&#8216;, s.StateProvinceCode   FROM Sales.SalesOrderHeader SOH  INNER JOIN Sales.SalesOrderDetail SOD     ON SOH.SalesOrderID = SOD.SalesOrderID   JOIN Production.Product P     ON SOD.ProductID = P.ProductID   JOIN Person.Address A     ON SOH.BillToAddressID = A.AddressID   JOIN Person.StateProvince S     ON A.StateProvinceID = S.StateProvinceID  WHERE SOH.OrderDate = &#8217;2001-07-01 00:00:00.000&#8242; &#8211;&#60;&#8212;This would get GETDATE() or something  GROUP BY S.StateProvinceCode /* &#60;/This is the part that would eventually go into an agent job&#62;*/ Now you’ll want to create a stored proc that will be used to call the report data.  It will also make creating the report nice and clean. CREATE PROCEDURE [dbo].[rp_MapThat] AS  SELECT [OrderQty]       ,[StateProvinceCode] AS &#8216;State&#8217;   FROM [AdventureWorks].[Report].[TodaysSalesOrderByState] GO After that all you have to do is to go ahead and create the gadget using this little script: #Go ahead and add the SQL Snapins add-pssnapin SqlServerCmdletSnapin100 add-pssnapin SqlServerProviderSnapin100 #add the Gadgets Snapin add-pssnapin PowerGadgets invoke-sqlcmd -query "EXEC dbo.rp_MapThat" -database AdventureWorks -serverinstance WIN7\KILIMANJARO &#124; out-map -values OrderQty -label State -title "CountByState" -refresh 0:1:0   And now you’ve got a gadget prototype.  I’m sure you can figure out how to turn it into an operational gadget for your company.     LiveJournal Tags: T-SQL]]></description>
			<content:encoded><![CDATA[<p>For this month’s <a href="http://sqlvariant.com/wordpress/index.php/2010/04/t-sql-tuesday-005-reporting/">T-SQL Tuesday</a> I thought I’d go with something useful that I’ve been meaning to blog about for weeks now.  While listening to the <a href="http://powerscripting.wordpress.com/">PowerScripting Podcast</a> a few month’s back I heard about a product that sounded really cool for simple <a href="http://www.softwarefx.com/sfxSqlProducts/powergadgets/">data visualization</a> and quickly showing people just how powerful PowerShell is.  Now to get this to work using all the code on the screen you’ll at least have to download the trial version of of the Power Gadgets however even without the method I describe is important if you’re new to this type of reporting (desktop gadgets).</p>
<p>Turns out this little piece of software had even more packed into it than I was hoping for.  I needed a piece of software that could allow me to pipe data to it to display it in a desktop gadget as a list.</p>
<p>Before I show you how to setup this quick-and-easy tool to create desktop gadgets I want to issue a warning against setting up this type of thing <strong>directly</strong> against your production database; read all the way through or don’t blame me when you bring your production environment down.</p>
<p><a href="http://sqlvariant.com/wordpress/wp-content/uploads/2010/04/image2.png"><img style="display: inline; border-width: 0px;" title="image" src="http://sqlvariant.com/wordpress/wp-content/uploads/2010/04/image_thumb2.png" border="0" alt="image" width="616" height="407" /></a></p>
<p>What you want to do (at the very least) is to have all of the gadgets that you deploy read from a central location where they only have to scoop up the <strong>results</strong> of the query that you’re trying to report on, and not 400 gadgets running the query itself.  An easy way to accomplish this would be to run the query in an Agent Job against your production environment (assuming that you don’t have a live reporting copy) and deposit those results in a table.  Let’s see if we can step through an example with the AdventureWorks database.</p>
<h4>If this below were your query to show your sales for today…</h4>
<p><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">SELECT</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: fuchsia; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: fuchsia; mso-style-textfill-fill-alpha: 100.0%;">SUM</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">(</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">OrderQty</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">)</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">AS</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8216;</span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">OrderQty</span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8216;</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">,</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">s</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceCode<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">FROM</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Sales</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderHeader</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> SOH<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">INNER</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Sales</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderDetail</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> SOD<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderID<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Production</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Product</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> P<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ProductID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">P</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ProductID<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Person</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">Address</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> A<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">BillToAddressID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AddressID<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Person</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvince</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> S<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">S</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceID<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">WHERE</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">OrderDate</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8217;2001-07-01 00:00:00.000&#8242;</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: green; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;">&#8211;&lt;&#8212;This would get GETDATE() or something<br />
</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">GROUP</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">BY</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">S</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceCode</span></p>
<h4>…you would really want to create an Agent Job to load that into a table and select off of the table.  For simplicity we’ll leave out the job and just use the queries.</h4>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: green; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;">/* &lt;Do this part only one time&gt;*/</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">USE</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">AdventureWorks</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">]</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">GO</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">CREATE</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">SCHEMA</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [Report] </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">AUTHORIZATION</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">dbo</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">]</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">GO</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">CREATE</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">TABLE</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [Report]</span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">[</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">TodaysSalesOrderByState</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">]</span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">(</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">[</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">OrderQty</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">] [</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">int</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">] </span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">NULL,</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">[</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">StateProvinceCode</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">] [</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">nchar</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">]</span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">(</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">3</span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">)</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">NOT</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">NULL,</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">[</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">LastLoadTime</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">] </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">DATETIME</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">NOT</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">NULL</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">CONSTRAINT</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">DF_LastLoadTime</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;">] </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">DEFAULT</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: fuchsia; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: fuchsia; mso-style-textfill-fill-alpha: 100.0%;">GETDATE</span><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">()</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: gray; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">)</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> </span><span style="font-family: &amp;amp;amp; color: blue; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: &amp;amp;amp; color: black; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-alpha: 100.0%; mso-color-index: 1; mso-style-textfill-fill-themecolor: text1;"> [PRIMARY]</span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 10pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp;amp; color: green; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp;amp; mso-fareast-font-family: calibri; mso-bidi-font-family: &amp;amp;amp; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;">/* &lt;/Do this part only one time&gt;*/</span></p>
<h4>Then this…</h4>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp; color; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp; mso-fareast-font-family; mso-bidi-font-family: &amp;amp; mso-font-kerning; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;"><span style="color: #008000;">/* &lt;This is the part that would eventually go into an agent job, along with a delete statement before it that was in the same transaction&gt;*/</span></span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp; color; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp; mso-fareast-font-family; mso-bidi-font-family: &amp;amp; mso-font-kerning; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">INSERT</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">INTO</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Report</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TodaysSalesOrderByState</span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">(</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">[</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">OrderQty</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">]</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">,</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">[</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceCode</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">]</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">)</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">SELECT</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: fuchsia; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: fuchsia; mso-style-textfill-fill-alpha: 100.0%;">SUM</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">(</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">OrderQty</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">)</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">AS</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8216;</span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">OrderQty</span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8216;</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">,</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">s</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceCode</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">FROM</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Sales</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderHeader</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> SOH</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">INNER</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Sales</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderDetail</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> SOD</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SalesOrderID</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Production</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Product</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> P</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOD</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ProductID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">P</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ProductID</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Person</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">Address</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> A</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">BillToAddressID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AddressID</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">  </span></span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">JOIN</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Person</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvince</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> S</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;">    </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">ON</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceID</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">S</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceID</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">WHERE</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SOH</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">OrderDate</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">=</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: red; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: red; mso-style-textfill-fill-alpha: 100.0%;">&#8217;2001-07-01 00:00:00.000&#8242;</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: green; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;">&#8211;&lt;&#8212;This would get GETDATE() or something</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">GROUP</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: blue; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: blue; mso-style-textfill-fill-alpha: 100.0%;">BY</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">S</span><span style="font-family: calibri; color: gray; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: gray; mso-style-textfill-fill-alpha: 100.0%;">.</span><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">StateProvinceCode</span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: &amp;amp; color; font-size: 9pt; language: en-us; mso-ascii-font-family: &amp;amp; mso-fareast-font-family; mso-bidi-font-family: &amp;amp; mso-font-kerning; mso-style-textfill-type: solid; mso-style-textfill-fill-color: green; mso-style-textfill-fill-alpha: 100.0%;"><span style="color: #008000;">/* &lt;/This is the part that would eventually go into an agent job&gt;*/</span></span></p>
<h4>Now you’ll want to create a stored proc that will be used to call the report data.  It will also make creating the report nice and clean.</h4>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes;">CREATE</span><span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;"> <span style="color: blue;">PROCEDURE</span> [dbo]<span style="color: gray;">.</span>[rp_MapThat]<br />
</span><span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes;">AS</span><span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes;"> </p>
<p></span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes;">SELECT</span><span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;"> [OrderQty]<br />
</span><span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;"><span style="mso-spacerun: yes;">      </span><span style="color: gray;">,</span>[StateProvinceCode] <span style="color: blue;">AS</span> <span style="color: red;">&#8216;State&#8217;<br />
</span></span><span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;"><span style="mso-spacerun: yes;">  </span><span style="color: blue;">FROM</span> [AdventureWorks]<span style="color: gray;">.</span>[Report]<span style="color: gray;">.</span>[TodaysSalesOrderByState]<br />
</span><span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt; mso-no-proof: yes;">GO</span></p>
<h4>After that all you have to do is to go ahead and create the gadget using this little script:</h4>
<pre class="PowerShellColorizedScript"><span style="color: #006400;">#Go ahead and add the SQL Snapins</span>
<span style="color: #0000ff;">add-pssnapin</span> <span style="color: #8a2be2;">SqlServerCmdletSnapin100</span>
<span style="color: #0000ff;">add-pssnapin</span> <span style="color: #8a2be2;">SqlServerProviderSnapin100</span>
<span style="color: #006400;">#add the Gadgets Snapin</span>
<span style="color: #0000ff;">add-pssnapin</span> <span style="color: #8a2be2;">PowerGadgets</span>            

<span style="color: #0000ff;">invoke-sqlcmd</span> <span style="color: #000080;">-query</span> <span style="color: #8b0000;">"EXEC dbo.rp_MapThat"</span> <span style="color: #000080;">-database</span> <span style="color: #8a2be2;">AdventureWorks</span> <span style="color: #000080;">-serverinstance</span> <span style="color: #8a2be2;">WIN7\KILIMANJARO</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">out-map</span> <span style="color: #000080;">-values</span> <span style="color: #8a2be2;">OrderQty</span> <span style="color: #000080;">-label</span> <span style="color: #8a2be2;">State</span> <span style="color: #000080;">-title</span> <span style="color: #8b0000;">"CountByState"</span> <span style="color: #000080;">-refresh</span> <span style="color: #8a2be2;">0:1:0</span></pre>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"> </p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;">And now you’ve got a gadget prototype.  I’m sure you can figure out how to turn it into an operational gadget for your company.</p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span></p>
<p style="text-align: left; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;"><span style="font-family: calibri; color: black; font-size: 10pt; language: en-us; mso-ascii-font-family: calibri; mso-fareast-font-family: +mn-ea; mso-bidi-font-family: +mn-cs; mso-font-kerning: 12.0pt; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span></p>
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;">
<p style="text-align: left; line-height: 115%; margin-top: 0pt; unicode-bidi: embed; direction: ltr; margin-bottom: 0pt; margin-left: 0in; word-break: normal; language: en-us; mso-line-break-override: none; punctuation-wrap: hanging;">
<div class="wlWriterSmartContent" style="margin: 0px; display: inline; float: none; padding: 0px;">LiveJournal Tags: <a rel="tag" href="http://www.livejournal.com/interests.bml?int=T-SQL">T-SQL</a></div>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/04/get-sales-out-map-t-sql-tuesday-005-reporting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Project 52</title>
		<link>http://sqlvariant.com/wordpress/index.php/2010/01/project-52/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2010/01/project-52/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 13:05:58 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Pointless]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/index.php/2010/01/project-52/</guid>
		<description><![CDATA[Before I even started this year I knew that I was going to try and hold myself to putting out at least 52 blogs this year.&#160; Then I noticed that Jeremiah Peschka posted on this thing called “Project 52”.&#160; Since I’m already holding myself to that goal – even though I failed to list it on my Goals for 2010 – I thought I’d mention it here publicly. Project52 is a personal challenge geared toward getting fresh content on your website. The goal is to write at least 1 new article per week for 1 year. Because we all know what it‘s like to procrastinate on our content. A website is not just a fresh design that can be uploaded to the web and forgotten about! Hey does this count as one of the 52?]]></description>
			<content:encoded><![CDATA[<p>Before I even started this year I knew that I was going to try and hold myself to putting out at least 52 blogs this year.&#160; Then I noticed that <a href="http://facility9.com/2010/01/11/project-52" target="_blank">Jeremiah Peschka</a> posted on this thing called “<a href="http://project52.info/" target="_blank">Project 52</a>”.&#160; Since I’m already holding myself to that goal – even though I failed to list it on my <a href="http://sqlvariant.com/wordpress/index.php/2010/01/goals-for-2010/" target="_blank">Goals for 2010</a> – I thought I’d mention it here publicly.</p>
<div align="center">
<table border="0" cellspacing="0" cellpadding="2" width="435" align="center">
<tbody>
<tr>
<td valign="top" width="433">
<p align="left">Project52 is a personal challenge geared toward getting fresh content on your website. The goal is to write at least 1 new article per week for 1 year. Because we all know what it‘s like to procrastinate on our content. A website is not just a fresh design that can be uploaded to the web and forgotten about!</p>
</td>
</tr>
</tbody>
</table></div>
<p>Hey does this count as one of the 52?</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2010/01/project-52/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My first BLOG-post EVER</title>
		<link>http://sqlvariant.com/wordpress/index.php/2009/10/my-first-blog-post-ever/</link>
		<comments>http://sqlvariant.com/wordpress/index.php/2009/10/my-first-blog-post-ever/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 23:12:07 +0000</pubDate>
		<dc:creator>Aaron Nelson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Pointless]]></category>

		<guid isPermaLink="false">http://sqlvariant.com/wordpress/?p=3</guid>
		<description><![CDATA[What a BLOG? Seriously?? Have you met me. I like to run off at the mouth not at the fingertips. What do I know about blogging? Don&#8217;t they come from Antwerp? I&#8217;m finally giving in as starting a BLOG.  Who knows how long this will last or how many people will read it, but I&#8217;m starting.  How am I going to do this you say!  Well I read some blog-posts by this guy named Brent Ozar &#8220;Blogging for a Living&#8221;&#8230;  ok &#8220;read&#8221; might be too strong of a word but I skimmed a few of the words in his 5-part series on how to start a BLOG.  (Great stuff btw Brent, really helped!)  So anyways, at somepoint I&#8217;m going to go back and actually read those articles, in the meantime though I&#8217;ve go an idea for my &#8220;Second BLOG-post EVER&#8221; so actually learning how to blog is just going to have to wait.  http://www.brentozar.com/twitter/how-to-start-a-blog/ The first couple of weeks, maybe even months of this are going to be a bit rough because, well, I don&#8217;t know how to read let alone type.  (For the record, I don&#8217;t read, I memorize, takes a really long time.)  If you have ever received an email from me you know just how laconic I can be.  I&#8217;ll try to break that habit but not right now.  First I want to get into the habit of having something to say at least once a week, every week.  I&#8217;m not going to promise to be useful or entertaining or anything, I&#8217;m just going to promise to say something, in text format (of at least 17 words) every week.  And who knows, one day, somewhere out there, this BLOG might just finally your life server/database&#8217;s life. So to start out: This BLOG is about my undying love for trials and tribulations with SQL Server and all of it&#8217;s friends (you know: SSIS, SSRS, SSAS, SQL Agent, Replication, Clustering, Virtualization, stuff like that).  I&#8217;m going to blog about a few random things that probably have no connection whatsoever.  I might start something, post it just to get it out there, and then come back and edit once I&#8217;ve thought about it some more for a bit. Why might you care? Well I&#8217;ve been doing this whole database thing for over 10 years and I&#8217;m telling you, one of these days, this whole &#8220;software&#8221; thing is really going to take off.  I hold MCITP: credentials in Business Intelligence Developer, Database Administrator, Database Developer; so i know how to RTFM (usually).  I run into the occasional error that no one has run into yet and tons of errors that plenty of people have run into; and I plan to catalog them here.  This will be my cheat-sheet for fixing problems that I&#8217;ve already run into so feel free to use my copy and tell me stuff that you think I should add.  If you have any questions about any of the SQL Server certifications exams (Admin, Dev, or BI.  2005 or 2008) and how you should go about preparing for them feel free to ask. So here goes. T Minus X:XX until my Second BLOG-post EVER! Oh and&#8230;  please, comment. ( That&#8217;s right, I just said that I want to hear someone&#8217;s opinion besides my own )]]></description>
			<content:encoded><![CDATA[<p>What a BLOG?<br />
Seriously??<br />
Have you met me.<br />
I like to run off at the mouth not at the fingertips.<br />
What do I know about blogging?<br />
Don&#8217;t they come from Antwerp?</p>
<p>I&#8217;m finally giving in as starting a BLOG.  Who knows how long this will last or how many people will read it, but I&#8217;m starting.  How am I going to do this you say!  Well I read some blog-posts by this guy named Brent Ozar &#8220;Blogging for a Living&#8221;&#8230;  ok &#8220;read&#8221; might be too strong of a word but I skimmed a few of the words in his 5-part series on how to start a BLOG.  (Great stuff btw Brent, really helped!)  So anyways, at somepoint I&#8217;m going to go back and actually read those articles, in the meantime though I&#8217;ve go an idea for my &#8220;Second BLOG-post EVER&#8221; so actually learning how to blog is just going to have to wait.  <a href="http://www.brentozar.com/twitter/how-to-start-a-blog/">http://www.brentozar.com/twitter/how-to-start-a-blog/</a></p>
<p>The first couple of weeks, maybe even months of this are going to be a bit rough because, well, I don&#8217;t know how to read let alone type.  (For the record, I don&#8217;t read, I memorize, takes a really long time.)  If you have ever received an email from me you know just how laconic I can be.  I&#8217;ll try to break that habit but not right now.  First I want to get into the habit of having something to say at least once a week, <strong>every</strong> week.  I&#8217;m not going to promise to be useful or entertaining or anything, I&#8217;m just going to promise to say something, in text format (of at least 17 words) every week.  And who knows, one day, somewhere out there, this BLOG might just finally your <span style="text-decoration: line-through;">life</span> server/database&#8217;s life.</p>
<p>So to start out:<br />
This BLOG is about my <span style="text-decoration: line-through;">undying love for</span> trials and tribulations with SQL Server and all of it&#8217;s friends (you know: SSIS, SSRS, SSAS, SQL Agent, Replication, Clustering, Virtualization, stuff like that).  I&#8217;m going to blog about a few random things that probably have no connection whatsoever.  I might start something, post it just to get it out there, and then come back and edit once I&#8217;ve thought about it some more for a bit.</p>
<p>Why might you care?<br />
Well I&#8217;ve been doing this whole database thing for over 10 years and I&#8217;m telling you, one of these days, this whole &#8220;software&#8221; thing is really going to take off.  I hold MCITP: credentials in Business Intelligence Developer, Database Administrator, Database Developer; so i know how to RTFM (usually).  I run into the occasional error that no one has run into yet and tons of errors that plenty of people have run into; and I plan to catalog them here.  This will be my cheat-sheet for fixing problems that I&#8217;ve already run into so feel free to use my copy and tell me stuff that you think I should add.  If you have any questions about any of the SQL Server certifications exams (Admin, Dev, or BI.  2005 or 2008) and how you should go about preparing for them feel free to ask.</p>
<p>So here goes.<br />
T Minus X:XX until my Second BLOG-post EVER!</p>
<p>Oh and&#8230;  please, comment.<br />
( That&#8217;s right, I just said that I want to hear someone&#8217;s opinion besides my own <img src='http://sqlvariant.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  )</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlvariant.com/wordpress/index.php/2009/10/my-first-blog-post-ever/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic (Requested URI is rejected)

Served from: www.sqlvariant.com @ 2012-02-04 04:03:14 -->
