<?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>Randquist Rants &#187; sql</title>
	<atom:link href="http://randquist.us/blog/tags/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://randquist.us/blog</link>
	<description>Random ramblings of a Software Engineer and Entrepreneur.</description>
	<lastBuildDate>Mon, 26 Jul 2010 03:53:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>sp_findtext</title>
		<link>http://randquist.us/blog/2007/01/17/sp_findtext/</link>
		<comments>http://randquist.us/blog/2007/01/17/sp_findtext/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 23:37:50 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=42</guid>
		<description><![CDATA[When in MS SQL server and you need to find some text in a stored proc, but you have 100&#8242;s of them, what do you do? Came accross sp_findtext when searching for an issue today. I was doing maintenance on an app I hadn&#8217;t looked at in over 18 months. sp_findtext]]></description>
			<content:encoded><![CDATA[<p>When in MS SQL server and you need to find some text in a stored proc, but you have 100&#8242;s of them, what do you do?</p>
<p>Came accross sp_findtext when searching for an issue today.  I was doing maintenance on an app I hadn&#8217;t looked at in over 18 months.</p>
<p><a href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=32319">sp_findtext</a></p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2007/01/17/sp_findtext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sp_who, sp_who2, and sp_who_3</title>
		<link>http://randquist.us/blog/2006/09/17/sp_who-sp_who2-and-sp_who3/</link>
		<comments>http://randquist.us/blog/2006/09/17/sp_who-sp_who2-and-sp_who3/#comments</comments>
		<pubDate>Sun, 17 Sep 2006 18:36:45 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[Note to Self]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=34</guid>
		<description><![CDATA[I have used sp_who and sp_who2 frequently as a DBA on Microsoft SQL servers. I came across sp_who3 a year or so ago, and have used it since. It&#8217;s a handy sproc to have when working on MS SQL 2000. sp_who_3 : an enhanced and efficient version of sp_who]]></description>
			<content:encoded><![CDATA[<p>I have used sp_who and sp_who2 frequently as a DBA on Microsoft SQL servers.  I came across sp_who3 a year or so ago, and have used it since.  It&#8217;s a handy sproc to have when working on MS SQL 2000.</p>
<p><a title="sp_who_3 : An enhanced and efficient Version of sp_who" href="http://vyaskn.tripod.com/sp_who3.htm" target="_blank">sp_who_3 : an enhanced and efficient version of sp_who</a></p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/09/17/sp_who-sp_who2-and-sp_who3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s always the little things&#8230;</title>
		<link>http://randquist.us/blog/2006/07/13/its-always-the-little-things/</link>
		<comments>http://randquist.us/blog/2006/07/13/its-always-the-little-things/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 06:19:38 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=25</guid>
		<description><![CDATA[I&#8217;m getting over more hurdles in Ruby. The amount of material on the web regarding Ruby and RoR is great, but some of the simplest things seem to take me the longest to figure out. Using Ruby to import data from some Excel spreadsheets on Windows, things are going great the win32ole automation is straightforward, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting over more hurdles in Ruby.  The amount of material on the web regarding Ruby and RoR is great, but some of the simplest things seem to take me the longest to figure out.</p>
<p>Using Ruby to import data from some Excel spreadsheets on Windows, things are going great the win32ole automation is straightforward, and well documented in &#8220;Programming Ruby&#8221; by Dave Thomas (The <a title="Pragmatic Programmer" href="http://www.pragmaticprogrammer.com/" target="_blank">Pragmatic Programmer</a>&#8216;s Guide).  So naturally one of the columns is a client name column, and invariably I hit McSweeny&#8217;s Auto Body Shop.  Syntax error with SQL.</p>
<p>Ok easy enough I just need to escape the apostrophe.  Hmm.. how?  After a bunch of researching, and this is one of those forehead thumpers, Regular expressions finally dawned on me.  So after 20 minutes of kicking around the internet, I thought &#8220;oh, yea, why not use regex&#8221;.  This is what I came up with:</p>
<p><tt>@clientName.gsub!(/'/,"''")</tt></p>
<p>Time to brush up on my regular expressions, since they are so readily available in Ruby.</p>
<p>The next simple thing&#8230; user picks a month and a year on which some particular processing will now take place.  Quickest way to convert 10 into October?</p>
<p>I finally came up with the following, not terribly happy with it, but it works for the moment.</p>
<p><tt> @month = @params['month']<br />
@year = @params['year']</tt></p>
<p><tt>@tmpDate = ParseDate.parsedate(@month + "/1/" + @year)<br />
@monthName = Time.local(*@tmpDate).strftime("%B")</tt></p>
<p>But there has to be a more obvious way that I am not seeing.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/07/13/its-always-the-little-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Server</title>
		<link>http://randquist.us/blog/2006/06/24/new-server/</link>
		<comments>http://randquist.us/blog/2006/06/24/new-server/#comments</comments>
		<pubDate>Sun, 25 Jun 2006 04:37:45 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[General Posts]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dnn]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[vehix]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=19</guid>
		<description><![CDATA[I left Vehix.com in October of 2005, however due to my four years there, and the good relationships I have had with many people there, I have continued to host my site on one of the play servers used by the technology team. That has all ended, I now have my own server up and [...]]]></description>
			<content:encoded><![CDATA[<p>I left Vehix.com in October of 2005, however due to my four years there, and the good relationships I have had with many people there, I have continued to host my site on one of the play servers used by the technology team.  That has all ended, I now have my own server up and running and am migrating things over to the new box.</p>
<p>The new server is running Windows 2003.  Next will be a Linux server.</p>
<p>Today I successfully installed and configured:</p>
<ul>
<li>Apache 2.0.58</li>
<li>PHP 5.1.4</li>
<li>MySQL 5.0</li>
<li>hMailServer</li>
<li>RoundCube Webmail Client</li>
<li>MS SQL 2000</li>
<li>IIS 6.0</li>
</ul>
<p>I was able to reinstall WordPress, restore the mySQL database, and my blog is now up and running on the new server.</p>
<p>I decided to upgrade the version of DNN I was using for my business site.  I&#8217;m playing with DNN4 now, trying to decide if I want to continue with DNN.  That&#8217;s tomorrows task.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/06/24/new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
