<?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>C&#38;C Computer Solutions</title>
	<atom:link href="http://cccomputersolutions.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cccomputersolutions.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 May 2011 19:01:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Business Technologists: The &#8220;new&#8221; IT ambassador for today&#8217;s evolving companies?</title>
		<link>http://cccomputersolutions.com/bi/business-technologists-the-new-it-ambassador-for-todays-evolving-companies/</link>
		<comments>http://cccomputersolutions.com/bi/business-technologists-the-new-it-ambassador-for-todays-evolving-companies/#comments</comments>
		<pubDate>Tue, 31 May 2011 18:49:46 +0000</pubDate>
		<dc:creator>Ryan Robitaille</dc:creator>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Out of The Box]]></category>

		<guid isPermaLink="false">http://cccomputersolutions.com/?p=416</guid>
		<description><![CDATA[Like Bob Dylan said in 1964, &#8220;The Times They Are a-Changin&#8217;&#8221;. Everyone knows the old often-heard adage about the IT Department being more or less a neccessary evil &#8211; while this isn&#8217;t exactly true &#8211; many companies have operated that way over the past decade or so (many to their detriment, unbenowst to them). Not [...]]]></description>
			<content:encoded><![CDATA[<p>Like Bob Dylan said in 1964, <em>&#8220;The Times They Are a-Changin&#8217;&#8221;</em>.</p>
<p>Everyone knows the old often-heard adage about the IT Department being more or less a neccessary evil &#8211; while this isn&#8217;t exactly true &#8211; many companies have operated that way over the past decade or so (many to their detriment, unbenowst to them).</p>
<p>Not only that, but the ever increasing convergence of tech and media has led companies to make technology purchasing decisions without involoving IT at all &#8211; only to roll it back on to the backs of already overburdened IT workers, sight-unseen.</p>
<p>There needs to be an organizational shift in the way companies view the traditional Business / Technology split among their own departments. <span id="more-416"></span></p>
<p>Recently, Warren Ritchie, CIO of Volkswagen Group of America <a href="http://www.computerworld.com/s/article/9217070/Volkswagen_aims_for_rolling_computer_?taxonomyId=12">was interviewed by ComputerWorld</a> regarding the ever increasing use of technology in their present (and future) lines of cars. In discussing the data mining and interactive possibilites that would come along with &#8220;building cars &#8230; infused with intelligence, connectivity and new kinds of capabilities&#8221;, the conversation turned toward how this also posed an interesting problem for VWoA (or any shop looking to move forward in todays economy). &#8220;A lot of the services that we&#8217;re envisioning will require access to corporate functionality or corporate data&#8221;. Which breaks traditional IT/Biz paradigms regarding data and IT&#8217;s role in business or even customer support.</p>
<p>Basically, VWoA ended up revamping their IT structure by creating a kind of tech ambassador to ensure that Business and Information Technology flow together harmoniously toward a common goal.</p>
<blockquote><p>&#8230;responding to these changes by creating a layer of people within his IT organization who are focused on understanding the business and its direction, and knowing how to architect future needs to emerging technologies&#8230;</p></blockquote>
<h4>Forward thinking. Make changes in the present to account for the future. <strong>Pro-active</strong>.</h4>
<h2>Ritchie and VW have created a &#8220;business technologist&#8221; position, someone who fills a consulting role to help people on the <em>business</em> side, make <em>technology</em> decisions.</h2>
<blockquote><p>A business technologist needs to have an IT background, coupled with an understanding of integration and the ability to speak the language of business.</p></blockquote>
<h4>Finally&#8230;</h4>
<p>At C&amp;C, we are glad to hear this type of news from such a high-profile source. We&#8217;ve been playing the role of &#8220;Business Technologists&#8221; for years now &#8211; and won&#8217;t stop anytime soon regardless of what the title is these days. The reality is that this type of &#8220;sweeper&#8221;, someone who can go between the business logic, requirements and bottom line of a company as well as the low-level &#8220;get your hands dirty&#8221; type of technology role is essential. If no one can effectively manage the progress and speak both languages things will get &#8220;lost in translation&#8221;, crippling its usefulness and possibly setting the stage for company-wide poor decisions based on bad information.</p>
<p>With the widespread adoption of Business Intelligence solutions keeping tabs on the actual heartbeat of the bottom line &#8211; any miscommunication can have severe financial reprocussions.</p>
<h2>In a world where everyone is &#8220;moving to the cloud&#8221;, make sure that you have someone keeping their head OUT of the clouds keeping one foot in business and one foot in technology.</h2>
<p>Front-office people in suits making gut-decisions about their business, and back-office IT workers in polo shirts primarily keeping the systems up just isn&#8217;t going to cut it anymore.</p>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/bi/business-technologists-the-new-it-ambassador-for-todays-evolving-companies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft SQL Reporting Services</title>
		<link>http://cccomputersolutions.com/etl/microsoft-sql-reporting-services/</link>
		<comments>http://cccomputersolutions.com/etl/microsoft-sql-reporting-services/#comments</comments>
		<pubDate>Mon, 02 May 2011 21:11:03 +0000</pubDate>
		<dc:creator>Dave Howard</dc:creator>
				<category><![CDATA[ETL]]></category>
		<category><![CDATA[MS SQL Reporting Services]]></category>
		<category><![CDATA[reporting services]]></category>

		<guid isPermaLink="false">http://cccomputersolutions.com/etl/microsoft-sql-reporting-services/</guid>
		<description><![CDATA[With the prevalence of reporting tools available out there it is sometimes scary how many people do not realize that if you use or own ANY version of Microsoft SQL Server 2005 or Microsoft SQL Server 2008, even the free EXPRESS edition, then you have at your disposal a pretty powerful reporting solution. It is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cccomputersolutions.com/wp-content/uploads/ReportingServices.jpg" rel="prettyPhoto[360]"><img style="background-image: none; border-right-width: 0px; margin: 0px 7px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="ReportingServices" border="0" alt="ReportingServices" align="left" src="http://cccomputersolutions.com/wp-content/uploads/ReportingServices_thumb.jpg" width="270" height="198" /></a>With the prevalence of reporting tools available out there it is sometimes scary how many people do not realize that if you use or own <font color="#ff0000"><u>ANY</u></font> version of Microsoft SQL Server 2005 or Microsoft SQL Server 2008, even the free EXPRESS edition, then you have at your disposal a pretty powerful reporting solution.</p>
<p>It is interesting how many organizations that we walk into struggle with reporting.&#160; We will be implementing a large – scale application implementation with the database platform being SQL Server and inevitably someone will say, “Well, I guess we need to find some Cognos licenses, or go buy Crystal Reports or Business Objects.”&#160; Not the case, if you have SQL Server, you have Reporting Services.</p>
<p><font style="background-color: #ffffff" color="#8fb08c" face="Aharoni">Sample conversation:</font></p>
<p><em><strong>Client:</strong></em>&#160; “Well, it’s called Microsoft SQL Reporting Services, I can only use the tool to create reports against SQL Server data, right Dave?&#160; You mean to tell me that I have to automate moving my data from my Oracle and DB2 databases to use this reporting framework….too much work. Why exactly am I paying you again?”</p>
<p><strong><em>Me:&#160; </em></strong>“Let’s table that last question.&#160;&#160; Well, while the Reporting Services Engine will use 2 databases that have to be on SQL Server you can develop reports directly from your Oracle or DB2 databases, or really any type of database platform that you have.&#160; While in some cases it IS useful to move some of your data over to SQL Server, you really do not have to.”</p>
<p><strong><em>Client:</em></strong>&#160; “So how do people access these reports?&#160; I probably have to run them myself or have one my people do it and then email them right?&#160; That does not seem so Web 2.0?”</p>
<p><strong><em>Me:&#160; </em></strong>“Web 2.0…really?&#160; Anyways, no, you will not run the reports, Reporting Services includes a reporting portal interface right out of the box.&#160; Your folks open up their web browser and they have access to all the reports that are there based upon their permissions.&#160; It’s really pretty slick.&#160; Also, you can schedule reports to run on their own, keep snapshots of reports, and also have the system email the reports automatically to your clients.”</p>
<p><strong><em>Client:&#160; </em></strong>“You got an answer for everything, huh?”</p>
<p><strong><em>Me:&#160; </em></strong>“Yup.”</p>
<p>So the moral of that little diversion is that Reporting Services really is pretty powerful and most of you already have it already.</p>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/etl/microsoft-sql-reporting-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Business Intelligence, Data Mining, SQL Server, and Major League Baseball &#8211; Part 1</title>
		<link>http://cccomputersolutions.com/etl/how-to-business-intelligence-data-mining-and-major-league-baseball-part-1/</link>
		<comments>http://cccomputersolutions.com/etl/how-to-business-intelligence-data-mining-and-major-league-baseball-part-1/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 20:02:44 +0000</pubDate>
		<dc:creator>Ryan Robitaille</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[ETL]]></category>
		<category><![CDATA[Out of The Box]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[analyzing data]]></category>
		<category><![CDATA[baseball]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[data warehousing]]></category>
		<category><![CDATA[major league baseball statistics]]></category>
		<category><![CDATA[major league baseball stats]]></category>
		<category><![CDATA[mlb]]></category>
		<category><![CDATA[pitch f/x]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sabermetrics]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://cccomputersolutions.com/?p=275</guid>
		<description><![CDATA[Let&#8217;s be honest &#8211; we&#8217;re data guys. &#8220;Geeks&#8221; to be more exact. But, we&#8217;re also sports guys &#8211; and if there is ANY sport out there that prides itself as being massively data-centric&#8230; its Baseball. Data goes with baseball like Barry Bonds and&#8230; um, Home Runs (yeah, that&#8217;s it). Data collecting is an integral part [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s be honest &#8211; we&#8217;re data guys. &#8220;Geeks&#8221; to be more exact. But, we&#8217;re also sports guys &#8211; and if there is ANY sport out there that prides itself as being massively data-centric&#8230; its Baseball. Data goes with baseball like Barry Bonds and&#8230; <a href="http://en.wikipedia.org/wiki/Barry_Bonds">um, Home Runs</a> <em>(yeah, that&#8217;s it)</em>. Data collecting is an integral part of baseball culture and has been going on way before the internet or relational databases were even invented.</p>
<p>&#8220;Business Intelligence&#8221; is a term that&#8217;s been kicked around around for some time now, and basically just means &#8220;analyzing data from your past, in order to BETTER make better decisions in the future <em>(or to better steer it in realtime)</em>&#8220;. Its all about strategy, learning from mistakes <em>(and successes)</em>, and being able to actively monitor / measure the health of your business. We might use this data to ask important business related questions: &#8220;Is Suzi Salesperson performing up to par this quarter?&#8221; or &#8220;What line of products have the biggest margin this time of year?&#8221;.</p>
<p>However, its not too far of a stretch to imagine someone who works for a Major League Baseball team sitting in front of a computer at the head office thinking: &#8220;What is the ROI of our pitching staff this year? Are they performing to expectations?&#8221; Its really no different then the business and reporting scenarios many of us encounter every single day. The exciting part is not only being able to read what has happened out on the ball field yesterday &#8211; but what might happen tomorrow. Boom. <strong>&#8220;Bizball Intelligence&#8221;</strong> anyone?</p>
<p><span id="more-275"></span></p>
<p>In this multi-part post, I&#8217;ll be taking you through all the steps needed to get up and running with your own historical AND current Major League Baseball statistics database (an operational / transactional DB), staging it out in a more &#8220;reportable&#8221; fashion (a data warehouse DB), and then finally building some cubes, calculated measures, and choice &#8220;Player Key Performance Indicators&#8221; (KPIs) based on the data. Who knows, maybe you&#8217;ll be so good at it that you&#8217;ll get hired by the San Diego Padres front-office, like <a title="Wells Oliver" href="http://blog.wellsoliver.com/" target="_blank">this guy did</a>, but more on him later.</p>
<h4>So grab some sunflower seeds and a calculator &#8211; adjust your jock straps and get ready, &#8217;cause here we go.</h4>
<h2>[ Part I: DATA ]</h2>
<p>First up. We need some data (actually, a TON of data), and (more importantly) we need a place to store and easily access it. <strong>Its database creation time</strong>.</p>
<p>Here at C&amp;C, we are big fans of the Microsoft SQL Server 2008 stack of products (Database, Analysis Services, &amp; Reporting Services), and I&#8217;ll be using SQL Server 2008 R2 for this tutorial. You can get a <a href="http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspx">6 month eval copy</a>, (you can also install the free SQL Server Express product to get up and running with a database at no cost &#8211; but you&#8217;ll be missing out on the Analysis Services and Data Mining pieces).</p>
<p>There are lots of places with baseball data on the web, but sometimes its incomplete, unofficial, not granular enough, and organized badly for what we need it for. Besides, we can&#8217;t do as much with stats that are ALREADY calculated &#8211; we need to calculate them ourselves in order to Data Mine properly (although those &#8220;other&#8221; data sources come in handy to verify that our own calculation formulas are correct). So in my mind, the grand-poobah of MLB data collection is (shockingly enough) MLB.com.</p>
<p>MLB.com&#8217;s &#8220;GameDay&#8221; application uses a XML structure to read info about every game, inning, pitch, hit and player. The &#8220;full-monty&#8221; of data only goes back to about 2006 or so (pitch location, coordinates, speeds, etc also <a href="http://www.hardballtimes.com/main/article/a-first-look-at-the-2008-pitchf-x-data/">known as &#8220;Pitch/FX Data&#8221;</a>), but less granular data is available for prior years (and even more from other methods, I&#8217;ll post about later).</p>
<p>Browse around their backend, and you&#8217;ll see what I mean: <a href="http://gd2.mlb.com/components/game/mlb/">http://gd2.mlb.com/components/game/mlb/</a>. From there it goes into year/ month/ day/ game/ inning, linescore, batters, pitchers, etc. etc. all packaged up into XML files for the reading. Now before you think this is some kind of illegal backdoor in MLB&#8217;s servers, its not &#8211; well, not really. MLB has been aware that people have been using this data for about 4 years now. If they REALLY wanted to lock people out of it, they would have done it long ago. So feel free to browse it 100% guilt-free. The data is near realtime too! Pretty slick, MLB.</p>
<p><strong><i>linescore.xml</i> Example</strong></p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span> <br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;game</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;2011/04/26/sfnmlb-pitmlb-1&quot;</span> <span style="color: #000066;">venue</span>=<span style="color: #ff0000;">&quot;PNC Park&quot;</span> <span style="color: #000066;">game_pk</span>=<span style="color: #ff0000;">&quot;287242&quot;</span> <span style="color: #000066;">time</span>=<span style="color: #ff0000;">&quot;7:05&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">time_zone</span>=<span style="color: #ff0000;">&quot;ET&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">ampm</span>=<span style="color: #ff0000;">&quot;PM&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_time</span>=<span style="color: #ff0000;">&quot;4:05&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_time_zone</span>=<span style="color: #ff0000;">&quot;PT&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_ampm</span>=<span style="color: #ff0000;">&quot;PM&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_time</span>=<span style="color: #ff0000;">&quot;7:05&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_time_zone</span>=<span style="color: #ff0000;">&quot;ET&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_ampm</span>=<span style="color: #ff0000;">&quot;PM&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">game_type</span>=<span style="color: #ff0000;">&quot;R&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">time_aw_lg</span>=<span style="color: #ff0000;">&quot;7:05&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">aw_lg_ampm</span>=<span style="color: #ff0000;">&quot;PM&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">tz_aw_lg_gen</span>=<span style="color: #ff0000;">&quot;ET&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">time_hm_lg</span>=<span style="color: #ff0000;">&quot;7:05&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">hm_lg_ampm</span>=<span style="color: #ff0000;">&quot;PM&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">tz_hm_lg_gen</span>=<span style="color: #ff0000;">&quot;ET&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">venue_id</span>=<span style="color: #ff0000;">&quot;31&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">scheduled_innings</span>=<span style="color: #ff0000;">&quot;9&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_name_abbrev</span>=<span style="color: #ff0000;">&quot;SF&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_name_abbrev</span>=<span style="color: #ff0000;">&quot;PIT&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_code</span>=<span style="color: #ff0000;">&quot;sfn&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_file_code</span>=<span style="color: #ff0000;">&quot;sf&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_id</span>=<span style="color: #ff0000;">&quot;137&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_city</span>=<span style="color: #ff0000;">&quot;San Francisco&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_name</span>=<span style="color: #ff0000;">&quot;Giants&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_division</span>=<span style="color: #ff0000;">&quot;W&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_league_id</span>=<span style="color: #ff0000;">&quot;104&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_sport_code</span>=<span style="color: #ff0000;">&quot;mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_code</span>=<span style="color: #ff0000;">&quot;pit&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_file_code</span>=<span style="color: #ff0000;">&quot;pit&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_id</span>=<span style="color: #ff0000;">&quot;134&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_city</span>=<span style="color: #ff0000;">&quot;Pittsburgh&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_name</span>=<span style="color: #ff0000;">&quot;Pirates&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_division</span>=<span style="color: #ff0000;">&quot;C&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_league_id</span>=<span style="color: #ff0000;">&quot;104&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_sport_code</span>=<span style="color: #ff0000;">&quot;mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">day</span>=<span style="color: #ff0000;">&quot;TUE&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">gameday_sw</span>=<span style="color: #ff0000;">&quot;P&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">venue_w_chan_loc</span>=<span style="color: #ff0000;">&quot;USPA1290&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">gameday_link</span>=<span style="color: #ff0000;">&quot;2011_04_26_sfnmlb_pitmlb_1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_win</span>=<span style="color: #ff0000;">&quot;11&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_loss</span>=<span style="color: #ff0000;">&quot;11&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_win</span>=<span style="color: #ff0000;">&quot;10&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_loss</span>=<span style="color: #ff0000;">&quot;13&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">league</span>=<span style="color: #ff0000;">&quot;NN&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">top_inning</span>=<span style="color: #ff0000;">&quot;N&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">inning_state</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">status</span>=<span style="color: #ff0000;">&quot;Final&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">ind</span>=<span style="color: #ff0000;">&quot;F&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;10&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">outs</span>=<span style="color: #ff0000;">&quot;3&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_runs</span>=<span style="color: #ff0000;">&quot;3&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_runs</span>=<span style="color: #ff0000;">&quot;2&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_hits</span>=<span style="color: #ff0000;">&quot;7&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_hits</span>=<span style="color: #ff0000;">&quot;5&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_team_errors</span>=<span style="color: #ff0000;">&quot;1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_team_errors</span>=<span style="color: #ff0000;">&quot;1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">wrapup_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=wrap&amp;amp;c_id=mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_preview_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=preview&amp;amp;c_id=mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_preview_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=preview&amp;amp;c_id=mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">preview</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=preview&amp;amp;c_id=mlb&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">tv_station</span>=<span style="color: #ff0000;">&quot;ROOT SPORTS&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">home_recap_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=recap&amp;amp;c_id=pit&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">away_recap_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=recap&amp;amp;c_id=sf&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp;<span style="color: #000066;">photos_link</span>=<span style="color: #ff0000;">&quot;/mlb/gameday/index.jsp?gid=2011_04_26_sfnmlb_pitmlb_1&amp;amp;mode=photos&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;6&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;7&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;9&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;linescore</span> <span style="color: #000066;">inning</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">home_inning_runs</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">away_inning_runs</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;winning_pitcher</span> <span style="color: #000066;">first_name</span>=<span style="color: #ff0000;">&quot;Sergio&quot;</span> <span style="color: #000066;">first</span>=<span style="color: #ff0000;">&quot;Sergio&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;489265&quot;</span> <span style="color: #000066;">last_name</span>=<span style="color: #ff0000;">&quot;Romo&quot;</span> <span style="color: #000066;">last</span>=<span style="color: #ff0000;">&quot;Romo&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">name_display_roster</span>=<span style="color: #ff0000;">&quot;Romo&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">wins</span>=<span style="color: #ff0000;">&quot;1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">losses</span>=<span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">era</span>=<span style="color: #ff0000;">&quot;1.04&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">s_wins</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">s_losses</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">s_era</span>=<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;losing_pitcher</span> <span style="color: #000066;">first_name</span>=<span style="color: #ff0000;">&quot;Joel&quot;</span> <span style="color: #000066;">first</span>=<span style="color: #ff0000;">&quot;Joel&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;430629&quot;</span> <span style="color: #000066;">last_name</span>=<span style="color: #ff0000;">&quot;Hanrahan&quot;</span> <span style="color: #000066;">last</span>=<span style="color: #ff0000;">&quot;Hanrahan&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">name_display_roster</span>=<span style="color: #ff0000;">&quot;Hanrahan&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">wins</span>=<span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">losses</span>=<span style="color: #ff0000;">&quot;1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">era</span>=<span style="color: #ff0000;">&quot;2.25&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_wins</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_losses</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_era</span>=<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;save_pitcher</span> <span style="color: #000066;">first_name</span>=<span style="color: #ff0000;">&quot;Brian&quot;</span> <span style="color: #000066;">first</span>=<span style="color: #ff0000;">&quot;Brian&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;451216&quot;</span> <span style="color: #000066;">last_name</span>=<span style="color: #ff0000;">&quot;Wilson&quot;</span> <span style="color: #000066;">last</span>=<span style="color: #ff0000;">&quot;Wilson&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">name_display_roster</span>=<span style="color: #ff0000;">&quot;Wilson, B&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">wins</span>=<span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">losses</span>=<span style="color: #ff0000;">&quot;1&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">era</span>=<span style="color: #ff0000;">&quot;8.64&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_wins</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_losses</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">s_era</span>=<span style="color: #ff0000;">&quot;&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">saves</span>=<span style="color: #ff0000;">&quot;6&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;game_media<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;media</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;game&quot;</span> <span style="color: #000066;">calendar_event_id</span>=<span style="color: #ff0000;">&quot;14-287242-2011-04-26&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">start</span>=<span style="color: #ff0000;">&quot;2011-04-26T19:05:00-0400&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;SF @ PIT&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">has_mlbtv</span>=<span style="color: #ff0000;">&quot;true&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">free</span>=<span style="color: #ff0000;">&quot;NO&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">media_state</span>=<span style="color: #ff0000;">&quot;media_archive&quot;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">thumbnail</span>=<span style="color: #ff0000;">&quot;http://mediadownloads.mlb.com/mlbam/preview/sfnpit_287242_preview.jpg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <br />
&nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/game_media<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/game<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<h4>So how do we get this mountain of XML files into our database?</h4>
<p>Well, that&#8217;s easy. In 2010 <a title="http://blog.wellsoliver.com/" href="http://blog.wellsoliver.com/" target="_blank">Wells Oliver</a> created a python script and associated libraries that reads the XML Gameday data and inserts it into a relational database format. Wells wrote the script to work with MySQL and (also) hasn&#8217;t updated it in some time (the MLB data format is always changing, and expanding, especially in 2011). So I took his fine work, rewrote it to use Microsoft SQL Server and added / changed / enhanced portions of its logic and the database schema. Anyways, I have &#8220;forked&#8221; his project, as they say in software development circles.</p>
<div class="note download">
<h4 style="color: white;">Download the Python code here: <a href="http://cccomputersolutions.com/wp-content/uploads/gameday_mssql.zip">gameday_mssql.zip</a></h4>
<h4 style="color: white;">Download the SQL Server Create table script here: <a href="http://cccomputersolutions.com/wp-content/uploads/gameday_mssql.sql">gameday_mssql.sql</a></h4>
</div>
<p>It requires:</p>
<ul class= "check">
<li><span style="line-height: 19px;"><a title="http://www.python.org/download/releases/2.6.6/" href="http://www.python.org/download/releases/2.6.6/" target="_blank">Python 2.6</a> (probably works with any 2.X ABOVE 2.6, but haven&#8217;t tried yet)</span></li>
<li><span style="line-height: 19px;"><a title="http://code.google.com/p/pymssql/downloads/list" href="http://code.google.com/p/pymssql/downloads/list" target="_blank">Pymssql</a> Python Library</span></li>
<li><span style="line-height: 19px;"><a title="http://www.crummy.com/software/BeautifulSoup/" href="http://www.crummy.com/software/BeautifulSoup/" target="_blank">BeautifulSoup</a> Python Library</span></li>
</ul>
<p>Download it, expand it &#8211; (I use &#8220;C:\Gameday&#8221; myself), and then modify the &#8216;db.ini&#8217; file in the root folder to configure your database instance.</p>
<p>I&#8217;m working on a development SQL instance, so my <strong>db.ini</strong> looks like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[db]<br />
user=sa<br />
password=*******<br />
database=mlbgameday<br />
host=myhostname</div></div>
<p><i>(If you need to use Windows Authentication / Trusted Auth, stay tuned because I&#8217;ll be adding that shortly)</i></p>
<p>Obviously you&#8217;re going to want to create a &#8216;mlbgameday&#8217; (or whatever you desire to call it) database on the server first AND you&#8217;re going to have to create the schema frist.</p>
<p>Once you&#8217;re all set, the script is used like this: (make sure that the python directory is in your PATH)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\gameday&gt; python gameday_mssql.py --year=2011 --month=4 --day=28 --verbose --type=mlb</div></div>
<p>The only required argument is &#8220;year&#8221;, but I would shy away from trying to fetch a whole year at one time for now. The multiple threads tend to overwhelm the pymssql library and max out some internal max connections setting (the TDS lib MAX_CONNECTIONS). For &#8220;type&#8221; you can fetch &#8216;mlb&#8217; data or &#8216;aaa&#8217; data, which might be useful in our analysis, but not a neccessity.</p>
<p>In order to gather a couple years worth of data painlessly, there is ANOTHER script I put together in the package called build_all.py &#8211; simply open this file with a text editor and modify these variables near the top:</p>
<div class="codecolorer-container python default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">start_date <span style="color: #66cc66;">=</span> date<span style="color: black;">&#40;</span><span style="color: #ff4500;">2005</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">1</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span><br />
end_date <span style="color: #66cc66;">=</span> date<span style="color: black;">&#40;</span><span style="color: #ff4500;">2011</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">4</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">30</span><span style="color: black;">&#41;</span><br />
<span style="color: #008000;">type</span> <span style="color: #66cc66;">=</span> <span style="color: #483d8b;">'mlb'</span></div></div>
<p>Now, running &#8220;python build_all.py&#8221; will crawl through each date in your specified date range gathering data from all games on each day. Crawling through 6 years of MLB data might take a day or so &#8211; but once you have it, you have it &#8211; and updating it each day to get the previous days games should only take a minute or so (more on that in the next post).</p>
<p><strong>Sample Output:</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Now building: 2006-09-22<br />
python gameday_mssql.py --year=2006 --month=09 --day=22 --type=mlb<br />
Working on: 2006/09/22/anamlb-oakmlb-1<br />
Working on: 2006/09/22/arimlb-lanmlb-1<br />
Working on: 2006/09/22/atlmlb-colmlb-1<br />
Working on: 2006/09/22/bosmlb-tormlb-1<br />
Working on: 2006/09/22/clemlb-texmlb-1<br />
Working on: 2006/09/22/detmlb-kcamlb-1<br />
Working on: 2006/09/22/flomlb-phimlb-1<br />
Working on: 2006/09/22/minmlb-balmlb-1<br />
Working on: 2006/09/22/nyamlb-tbamlb-1<br />
Working on: 2006/09/22/seamlb-chamlb-1<br />
Working on: 2006/09/22/sfnmlb-milmlb-1<br />
Working on: 2006/09/22/slnmlb-houmlb-1<br />
Working on: 2006/09/22/wasmlb-nynmlb-1<br />
Finished. Total time: 00:08:23<br />
<br />
Now building: 2006-09-23<br />
python gameday_mssql.py --year=2006 --month=09 --day=23 --type=mlb<br />
Working on: 2006/09/23/anamlb-oakmlb-1<br />
Working on: 2006/09/23/arimlb-lanmlb-1</div></div>
<p><strong>Etc&#8230; etc&#8230; </strong></p>
<p>Fire it up and you&#8217;ll have more data then you know what to do with &#8211; what DO we do with it? That&#8217;s next&#8230;</p>
<p><a href="http://cccomputersolutions.com/etl/how-to-business-intelligence-data-mining-and-major-league-baseball-part-1/attachment/mssql-query-gameday2/" rel="attachment wp-att-320"><img src="http://cccomputersolutions.com/wp-content/uploads/mssql-query-gameday2.jpg" alt="" title="mssql-query-gameday2" width="955" height="542" class="aligncenter size-full wp-image-320" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/etl/how-to-business-intelligence-data-mining-and-major-league-baseball-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Formotus</title>
		<link>http://cccomputersolutions.com/partners/formotus/</link>
		<comments>http://cccomputersolutions.com/partners/formotus/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 16:18:08 +0000</pubDate>
		<dc:creator>Dave Howard</dc:creator>
				<category><![CDATA[Partners]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[partners]]></category>

		<guid isPermaLink="false">http://cccomputersolutions.com/etl/formotus/</guid>
		<description><![CDATA[We are truly excited to announce that we have formed an official partnership with Formotus, Inc. (http://formotus.com) as a preferred solutions and subscription partner. This solution framework will greatly enhance our mobile frameworks and enhance our Sharepoint solutions focused on the BI space. The benefits of a connected mobile workforce are many, but the cost [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cccomputersolutions.com/wp-content/uploads/formotus.jpg" rel="prettyPhoto[243]"><img class="alignleft" style="margin: 5px; border: 0px currentColor; padding-top: 0px; padding-right: 0px; padding-left: 0px; display: inline; background-image: none;" title="formotus" src="http://cccomputersolutions.com/wp-content/uploads/formotus_thumb.jpg" border="0" alt="formotus" width="214" height="54" align="right" /></a>We are truly excited to announce that we have formed an official partnership with Formotus, Inc. (<a href="http://formotus.com">http://formotus.com</a>) as a preferred solutions and subscription partner. This solution framework will greatly enhance our mobile frameworks and enhance our Sharepoint solutions focused on the BI space.</p>
<p>The benefits of a connected mobile workforce are many, but the cost and effort of developing custom mobile solutions has precluded many organizations from making the move. Formotus offers a breakthrough solution that can connect your workforce directly to your business data sooner and with less up-front investment than ever before.</p>
<p>The Formotus Software + Services platform allows businesses to rapidly create and easily deploy powerful custom applications for mobile phones to connect field workers with real-time business data. The per-user subscription model lets you scale up your project as quickly or gradually as you want at the lowest possible level of cost and risk. You can also leverage your existing investment in the Microsoft Office system by using InfoPath as a rapid application development tool and SharePoint as an out-of-the-box solution for collaboration between your back office and your mobile workforce. The robust standards-based XML technologies at the heart of the Formotus solution make it compatible with any business systems that can be exposed as Web services. You can connect mobile workers with your own backend servers, whether running SAP, Oracle, SQL or Dynamics. Or you can connect to cloud-based solutions such as Google AppEngine, Amazon WS, or Microsoft SDS. Formotus is unique in its ability to rapidly create, customize and deploy rich data applications on Windows phones for the mobile workforce in any industry. General-purpose applications as well as industry-specific applications can be deployed swiftly using the powerful platform of Formotus Software + Services.</p>
<p>Formotus is the gateway to custom mobile business applications that are fast and affordable, with enterprise-grade reliability and security. Formotus solutions are device-independent and can be used by companies of any size.</p>
<p><strong>Solution Description</strong><br />
We can help you create their own custom business forms without writing any code and run the <strong><span style="color: #f79646;"><strong><span style="color: #f79646;"><em><span style="text-decoration: underline;">same form on all kinds of devices including iPad, iPhone, Galaxy Tab, Xoom, and even <a rel="attachment wp-att-253" href="http://cccomputersolutions.com/partners/formotus/attachment/solution_formotus/"><img class="alignright size-medium wp-image-253" title="solution_formotus" src="http://cccomputersolutions.com/wp-content/uploads/solution_formotus-180x300.png" alt="" width="180" height="300" /></a>ruggedized Windows Mobile 6.x devices</span></em></span></strong></span></strong>. Not browser-based, these robust native apps are optimized to work well offline. This hosted mobile business application platform from Formotus works seamlessly with the Verizon Wireless network.</p>
<p><strong>Top Reasons to Buy</strong></p>
<ul>
<li> Go paperless. The easiest and most cost effective way to convert your mobile work force from paper to electronic forms.</li>
<li> Go mobile. Use SharePoint or XML Web services to extend your office systems workflow out to your people in the field.</li>
<li> Go fast. Forget app development, Formotus solutions are rapid to create, easy to manage, and work across many platforms.</li>
</ul>
<p>For more information contact us and we will be happy to help mobilize your workforce.</p>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/partners/formotus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New York State Procurement Contracts</title>
		<link>http://cccomputersolutions.com/services/sample-post/</link>
		<comments>http://cccomputersolutions.com/services/sample-post/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 15:59:00 +0000</pubDate>
		<dc:creator>Dave Howard</dc:creator>
				<category><![CDATA[Services]]></category>
		<category><![CDATA[procurement contracts]]></category>

		<guid isPermaLink="false">http://cccomputersolutions.com/etl/sample-post/</guid>
		<description><![CDATA[While not specifically focusing on the public sector, our location in Albany, New York, the capital of the state, lends itself to doing a great deal of work with many State Agencies.&#160; The current C&#38;C New York State procurement contracts that we currently hold include: CMS092A – New York State OGS IT Services Backdrop Contract [...]]]></description>
			<content:encoded><![CDATA[<p>While not specifically focusing on the public sector, our location in Albany, New York, the capital of the state, lends itself to doing a great deal of work with many State Agencies.&#160; The current C&amp;C New York State procurement contracts that we currently hold include:</p>
<ul>
<li>CMS092A – New York State OGS IT Services Backdrop Contract <a href="http://cccomputersolutions.com/wp-content/uploads/NY20State20Contract.jpg" rel="prettyPhoto[229]"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top: 0px; border-right: 0px; padding-top: 0px" title="NY%20State%20Contract" border="0" alt="NY%20State%20Contract" align="right" src="http://cccomputersolutions.com/wp-content/uploads/NY20State20Contract_thumb.jpg" width="145" height="94" /></a></li>
<li>C000110 – New York State OFT Project Management MASA </li>
<li>C000123 – New York State OFT Microsoft Support Services MASA </li>
<li>HSN Agencies – New York State OTDA ITTPS Backdrop Contract </li>
</ul>
<p><a href="http://cccomputersolutions.com/wp-content/uploads/cio_oft_logo_small.jpg" rel="prettyPhoto[229]"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="cio_oft_logo_small" border="0" alt="cio_oft_logo_small" src="http://cccomputersolutions.com/wp-content/uploads/cio_oft_logo_small_thumb.jpg" width="141" height="45" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/services/sample-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Our Services</title>
		<link>http://cccomputersolutions.com/services/our-services/</link>
		<comments>http://cccomputersolutions.com/services/our-services/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 14:07:14 +0000</pubDate>
		<dc:creator>Dave Howard</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://dev.thecandc.com/?p=113</guid>
		<description><![CDATA[C&#38;C Computer Solutions has been a long-standing, Gold-certified Microsoft Partner since 2007 and is focused solely on delivering Enterprise Solutions centered on Microsoft Server Products that include: SharePoint 2007 SharePoint 2010 Infopath Forms Server / SharePoint Integration ASP.NET, WPF, Silverlight, Windows Mobile Enterprise Application Development SQL 2005 / 2008 Database and Business Intelligence Platform (Reporting [...]]]></description>
			<content:encoded><![CDATA[<p>C&amp;C Computer Solutions has been a long-standing, Gold-certified Microsoft Partner since 2007 and is focused solely on delivering Enterprise Solutions centered on Microsoft Server Products that include:</p>
<ul>
<li>SharePoint 2007</li>
<li>SharePoint 2010</li>
<li>Infopath Forms Server / SharePoint Integration</li>
<li>ASP.NET, WPF, Silverlight, Windows Mobile Enterprise Application Development</li>
<li>SQL 2005 / 2008 Database and Business Intelligence Platform (Reporting Services/Analysis Services / Integration Services</li>
<li>Microsoft Dynamics CRM</li>
<li>Exchange 2007</li>
<li>System Center</li>
<li>MS Office Communications Server</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cccomputersolutions.com/services/our-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

