<?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>Brian Jeremy Kupetz &#124; brianjeremy.com &#124; my blog, who i am, what i do, what i've done, how to reach me, links &#187; Databases</title>
	<atom:link href="http://www.brianjeremy.com/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brianjeremy.com</link>
	<description>who am i, what do i do, what have i've done?</description>
	<lastBuildDate>Sat, 24 Jul 2010 13:12:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL Server Nightly Backup Script</title>
		<link>http://www.brianjeremy.com/2009/10/19/sql-server-nightly-backup-script/</link>
		<comments>http://www.brianjeremy.com/2009/10/19/sql-server-nightly-backup-script/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 23:13:34 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Application Servers]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=322</guid>
		<description><![CDATA[Below is a Microsoft SQL Server script that I use to create nightly backups.  The backups (.BAK files) can be copied to hard drive, tape, or remote storage to satisfy your disaster recovery requirements.  The script requires two (2) modifications &#8211; first change the &#8216;master_backup_dir&#8217; variable to the path on your server that [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a Microsoft SQL Server script that I use to create nightly backups.  The backups (.BAK files) can be copied to hard drive, tape, or remote storage to satisfy your disaster recovery requirements.  The script requires two (2) modifications &#8211; first change the &#8216;master_backup_dir&#8217; variable to the path on your server that you would like the backups stored and second update the &#8216;retain_day&#8217; variable to the number of days you wish to retain the backups on physical disk prior to removal.</p>
<p>Configure the SQL Agent to run a nightly job with a single step that executes the T-SQL code.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*********************************************************/</span>
<span style="color: #808080; font-style: italic;">/* Job requires use of xp_create_subdir and xp_delete_file to
create backup directories and delete old files */</span>
<span style="color: #808080; font-style: italic;">/*********************************************************/</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- All Databases excluding (non-read only and sample) databases are backed up.</span>
<span style="color: #808080; font-style: italic;">-- Expired backups are deleted</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- Backups of master, model and msdb are written to a 'System' folder</span>
<span style="color: #808080; font-style: italic;">-- Backups of user databases are written to folders named after the databases</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- Get names of eligible databases (excluding tempdb and sample databases)</span>
&nbsp;
declare databases_to_backup cursor
<span style="color: #993333; font-weight: bold;">FOR</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> name <span style="color: #993333; font-weight: bold;">FROM</span> master<span style="color: #66cc66;">..</span>sysdatabases
<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'NorthWind'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'Pubs'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'AdventureWorks'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'tempdb'</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">STATUS</span> &amp;amp; <span style="color: #cc66cc;">1024</span><span style="color: #66cc66;">&#41;</span> &amp;lt;&amp;gt; <span style="color: #cc66cc;">1024</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> name
<span style="color: #993333; font-weight: bold;">FOR</span> <span style="color: #993333; font-weight: bold;">READ</span> only
go
&nbsp;
<span style="color: #993333; font-weight: bold;">SET</span> nocount <span style="color: #993333; font-weight: bold;">ON</span>
&nbsp;
declare @db_name varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@master_backup_dir varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@specific_backup_dir varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@backup_date char<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@backup_time char<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@filename varchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
@retain_days tinyint<span style="color: #66cc66;">,</span>
@delete_date datetime
&nbsp;
<span style="color: #808080; font-style: italic;">-- Specify high level backup directory and number of days' backups to keep on disk</span>
<span style="color: #993333; font-weight: bold;">SET</span> @master_backup_dir <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'D:<span style="color: #000099; font-weight: bold;">\d</span>ata<span style="color: #000099; font-weight: bold;">\b</span>ackup<span style="color: #000099; font-weight: bold;">\s</span>ql2005<span style="color: #000099; font-weight: bold;">\'</span>
set @retain_days = 14
&nbsp;
-- Open the cursor and retrieve the first database name
open databases_to_backup
fetch databases_to_backup into @db_name
&nbsp;
while (@@fetch_status = 0)
begin
-- Build a datetime string to uniquely identify the backup
set @backup_date = convert(char(8),getdate(),112)
set @backup_time = right('</span>00<span style="color: #ff0000;">' + convert(varchar(2),datepart(hh,getdate())),2) + right('</span>00<span style="color: #ff0000;">' + convert(varchar(2),datepart(mi,getdate())),2)
&nbsp;
-- Build the specific backup directory path
if @db_name in ('</span>master<span style="color: #ff0000;">','</span>model<span style="color: #ff0000;">','</span>msdb<span style="color: #ff0000;">')
set @specific_backup_dir = @master_backup_dir + '</span>System\<span style="color: #ff0000;">'
else
set @specific_backup_dir = @master_backup_dir + @db_name + '</span>\<span style="color: #ff0000;">'
&nbsp;
-- Verify the backup directory exists
exec master.dbo.xp_create_subdir @specific_backup_dir
&nbsp;
-- Build a unique filename and backup the database
set @filename = @specific_backup_dir + @db_name + '</span>_db_<span style="color: #ff0000;">' + @backup_date + @backup_time + '</span><span style="color: #66cc66;">.</span>bak<span style="color: #ff0000;">'
BACKUP DATABASE @db_name TO DISK = @filename
&nbsp;
-- Delete files older than specified retain days
set @delete_date = dateadd(d, (@retain_days * -1) , getdate())
exec xp_delete_file 0, @specific_backup_dir, N'</span>bak<span style="color: #ff0000;">', @delete_date
&nbsp;
-- Get the next database name
fetch databases_to_backup into @db_name
end
&nbsp;
set nocount off
&nbsp;
close databases_to_backup
deallocate databases_to_backup</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2009/10/19/sql-server-nightly-backup-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Step Guide To Installing MySQL Server on OS X</title>
		<link>http://www.brianjeremy.com/2008/12/29/5-step-guide-to-installing-mysql-server-on-os-x/</link>
		<comments>http://www.brianjeremy.com/2008/12/29/5-step-guide-to-installing-mysql-server-on-os-x/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 23:24:24 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=301</guid>
		<description><![CDATA[A quick how-to guide on installing MySQL Server on Apple OS X 10.5.5:

Download the correct disk image for your flavor of OS X.
Open the image and notice two packages, click the one &#8220;mysql-5.0.xx-osx-10.5-x86.pkg
Follow the installation wizard (choose the installation location, click next, etc).
In the disk image you&#8217;ll see a file MySQL.prefPane &#8212; double click this [...]]]></description>
			<content:encoded><![CDATA[<p>A quick how-to guide on installing MySQL Server on Apple OS X 10.5.5:</p>
<ol>
<li><a title="Download MySQL" href="http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg" target="_blank">Download</a> the correct disk image for your flavor of OS X.</li>
<li>Open the image and notice two packages, click the one &#8220;mysql-5.0.xx-osx-10.5-x86.pkg</li>
<li>Follow the installation wizard (choose the installation location, click next, etc).</li>
<li>In the disk image you&#8217;ll see a file MySQL.prefPane &#8212; double click this file, it will install to your system preferences.</li>
<li>Now in system preferences you&#8217;ll see an icon/name pair &#8220;MySQL&#8221; &#8212; click this once to open the configuration settings.  Click &#8216;Start Server&#8217;, this will boot up the server*.</li>
</ol>
<p>**  Lastly, if you wish the server to start each time you reboot click the checkbox &#8220;Automatically start MySQL at Startup.&#8221;  Lastly, if you wish the server to start each time you reboot click the checkbox &#8220;Automatically start MySQL at Startup.&#8221;</p>
<p>Thats it, you are ready to roll.  Use your favorite MySQL management GUI to connect to the local database or simple use the &#8216;mysql&#8217; command from a terminal window.  Don&#8217;t forget to initially set your root password.</p>
<p><img src="http://www.brianjeremy.com/_media/mysql-pref.jpg" alt="MySQL Preferences" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/12/29/5-step-guide-to-installing-mysql-server-on-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ever Lost Your Triggers</title>
		<link>http://www.brianjeremy.com/2008/12/13/ever-lost-your-triggers/</link>
		<comments>http://www.brianjeremy.com/2008/12/13/ever-lost-your-triggers/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 16:26:06 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=286</guid>
		<description><![CDATA[Ever have an issue locating your triggers w/ MS SQL Server Management Studio or forget what triggers are running?  Well this snippet should lend you a hand:

USE &#91;dbname&#93;
SELECT *
FROM sys.triggers
WHERE is_disabled = 0 -- Enabled
ORDER BY &#91;Name&#93;;
GO

 
]]></description>
			<content:encoded><![CDATA[<p>Ever have an issue locating your triggers w/ MS SQL Server Management Studio or forget what triggers are running?  Well this snippet should lend you a hand:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">USE</span> <span style="color: #66cc66;">&#91;</span>dbname<span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span>
<span style="color: #993333; font-weight: bold;">FROM</span> sys<span style="color: #66cc66;">.</span>triggers
<span style="color: #993333; font-weight: bold;">WHERE</span> is_disabled <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span> <span style="color: #808080; font-style: italic;">-- Enabled</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #66cc66;">&#91;</span>Name<span style="color: #66cc66;">&#93;</span>;
GO</pre></div></div>

<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/12/13/ever-lost-your-triggers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tools of the Trade Part One</title>
		<link>http://www.brianjeremy.com/2008/12/10/tools-of-the-trade-part-one/</link>
		<comments>http://www.brianjeremy.com/2008/12/10/tools-of-the-trade-part-one/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 19:24:45 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Diagnostics]]></category>
		<category><![CDATA[Industry]]></category>
		<category><![CDATA[Quality Assurance]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=285</guid>
		<description><![CDATA[I once had a girlfriend who insisted I was &#8220;secretive&#8221; and &#8220;mysterious.&#8221;  Well, I guess those days are over with the birth of my blog last year www.brianjeremy.com,  twitter, facebook, and the general lack of privacy all American&#8217;s face these days.  So, I thought I&#8217;d release a partial list of applications and tools [...]]]></description>
			<content:encoded><![CDATA[<p>I once had a girlfriend who insisted I was &#8220;secretive&#8221; and &#8220;mysterious.&#8221;  Well, I guess those days are over with the birth of my blog last year <a title="Brian Jeremy - The Blog" href="http://www.brianjeremy.com" target="_self">www.brianjeremy.com</a>,  <a title="brianjeremy @ twitter" href="http://www.twitter.com/brianjeremy.com" target="_self">twitter</a>, <a title="facebook" href="http://www.facebook.com" target="_self">facebook</a>, and the general lack of privacy all American&#8217;s face these days.  So, I thought I&#8217;d release a partial list of applications and tools I use regularly to help me in my profession [we can define exactly what I do in another post - I suppose in simple terms I direct software development and oversee system administration]. Oh, most of these services, tools, subscriptions aren&#8217;t free but increase productivity drastically so get your <a title="American Express" href="http://www.americanexpress.com" target="_self">AMEX</a> in hand.</p>
<h3><strong>Server Diagnostics &amp; Maintenance</strong></h3>
<ul>
<li><a title="Pingdom - Uptime" href="http://www.pingdom.com" target="_self">Pingdom</a> &#8211; Monitors HTTP, UDP, TCP, PING : Sends a TXT alert if there is an issue.</li>
<li><a href="http://www.dnsstuff.com/" target="_self">DNSstuff</a> &#8211; Comprehensive DNS Diagnostics: Full Analysis Reports, Reverse Lookups, Traceroutes, Ping, SPF, Whois, and way to many services to list.</li>
<li><a title="Netcraft" href="http://www.netcraft.com" target="_self">Netcraft</a> &#8211; Provides Host Netblocks, Application/Web Server make/model, sub-domains, provides a historical list of changes to Servers/IPs overime.</li>
<li><a title="Charles Web Debugging Proxy" href="http://www.charlesproxy.com/" target="_self">Charles</a> &#8211; AN  / HTTP Proxy, HTTP Monitor/Reverse Proxy that allows you to view and record all of the HTTP traffic between a client machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information).<strong></strong></li>
</ul>
<h3>Web Development Diagnostic Tools</h3>
<ul>
<li>Firefox <a title="Firebug Firefox Extension" href="http://getfirebug.com/" target="_self">Firebug</a> Extension &#8211; With Firebug you can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.  Its insane, just download it.</li>
<li>Firefox <a title="YSlow" href="http://developer.yahoo.com/yslow/" target="_self">YSlow</a> Extension - YSlow analyzes web pages and tells you why they&#8217;re slow based on the the book <span><a title="High Performance Web Sites  : Amazon" href="http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309/ref=sr_1_1?ie=UTF8&amp;qid=1228933886&amp;sr=8-1" target="_self">High Performance Web Sites: Essential Knowledge for Front-End Engineers</a></span> which you can purchase from <a title="High Performance Websites : Amazon" href="http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309/ref=sr_1_1?ie=UTF8&amp;qid=1228933886&amp;sr=8-1" target="_self">Amazon</a>. YSlow is integrated with the Firebug.</li>
<li>Firefox <a title="FF: Web Developer Add-on" href="http://chrispederick.com/work/web-developer/" target="_self">Web Developer</a> Extension &#8211; Since FF became popular amongst developers this became the de-facto tool for front-end  engineers and designers to figure out &#8220;how to make web pages appear correct&#8221; in various browsers.  The extension adds a menu and a toolbar to the browser with features that allow you to accomplish the above goals of getting your designs to look A+.</li>
<li>Firefox <a title="Server Spy" href="https://addons.mozilla.org/en-US/firefox/addon/2036" target="_self">Server Spy</a> Extension &#8211; Its another great tool that indicates what brand of HTTP server you are accessing (e.g. Apache, IIS, Sun-ONE-Web-Server, Tomcat, IBM HTTP etc.)</li>
<li><a title="Check Browser Compatibility" href="http://browsershots.org/" target="_self">Browsershots</a> - Makes screenshots of a web page in a variety of different browsers running on a plethora of operating systems.  In total, it has the ability to produce screen shots [for design/layout debugging] on roughly 80 variants of browsers/operating systems.</li>
</ul>
<h3>Security Analysis Tools</h3>
<ul>
<li><a title="Net Square - httpprint" href="http://www.net-square.com/httprint/" target="_self">HTTPPrint</a> - httprint is a web server fingerprinting tool that relies on web server characteristics to accurately identify web servers, despite the fact that they may have been obfuscated.  httprint can successfully identify the underlying web server when their headers are mangled by either patching or other methods.</li>
<li><a title="ISAPI_Rewrite" href="http://www.helicontech.com/isapi_rewrite/" target="_self">ISAPI_Rewrite</a> &#8211; Is a powerful regular-expressions-based URL rewriter for IIS. It is compatible with Apache mod_rewrite  (in fact it will interpret Apache mod_rewrite .htaccess files, so you can change web servers w/o any hassle).</li>
<li><a title="Port 80 Software - ServerMask IIS" href="http://www.port80software.com/products/ServerMask/" target="_self">ServerMask</a> &#8211; This is an add-on for IIS which masks the brand of your server by modifying its HTTP header data as well as modifies your web server&#8217;s &#8220;fingerprint&#8221; by removing unnecessary HTTP response data, modifying cookie values, removing the need to serve file extensions, and adjusting other response information.  If curious, you&#8217;ll have to try httpprint against a production copy of ServerMask to determine its accuracy.</li>
</ul>
<h3>Software Development &amp; Lifecycle</h3>
<ul>
<li><a title="FogCreek FogBugz" href="http://www.fogcreek.com/FogBUGZ/" target="_self">FogBugz</a> &#8211; Is a simple to use bug tracking system.  In addition to tracking, prioritizing, and coordinating bugs and issues.  It can also be used as project management software to better coordinate team communication.</li>
<li><a title="Atlassian JIRA - Bug Tracking" href="http://www.atlassian.com/software/jira/" target="_self">Atlassian JIRA</a> &#8211; In a nutshell JIRA is the most robust bug and issue tracking as well as project management software on the market.  </li>
<li><a title="Bamboo - Build Server" href="http://www.atlassian.com/software/bamboo/" target="_self">Atlassian Bamboo</a> &#8211; Is a Continuous Integration and Build Server.  It automates the process of compiling and testing source code, saving time and instantly alerting you of build issues.</li>
<li><a title="Subversion" href="http://subversion.tigris.org/" target="_self">Subversion</a> &#8211; Is a widely-used open source version control system.  It maintains current and historical versions of files [typically source code and documentation].</li>
<li><a title="Versions - SVN Client" href="http://www.versionsapp.com/" target="_self">Versions</a> &#8211; Is a new [just out of beta] Subversion client of OS X.  Its amazing, just download it now!</li>
</ul>
<p> </p>
<h3>Database Design / Management / Monitoring</h3>
<ul>
<li><a title="Sybase PowerDesigner" href="http://www.sybase.com:80/products/modelingdevelopment/powerdesigner" target="_self">Sybase</a> PowerDesigner &#8211; By far the most robust data modeling tool.   Designing schema&#8217;s, physical data models, reverse engineering databases, the list is endless.  But save now, its $$$.</li>
<li><a title="Red Gate SQL Prompt 3.0" href="http://www.red-gate.com/products/SQL_Prompt/index.htm" target="_self">Red Gate</a> SQL Prompt &#8211; SQL Server code completion of database object names, syntax, and snippets as you write, intelligently offering only appropriate code choices.  If you write a lot of DB code or work with various databases intelligent name retrieval saves hours.</li>
<li><a title="Red Gate SQL Compare 7.1" href="http://www.red-gate.com/products/SQL_Compare/index.htm" target="_self">Red Gate</a> SQL Compare &#8211; compare and synchronize SQL database schemas, automatically traverses all objects and gives a full report prior to providing options for synchronization or simply providing a synchronization script to run at your leisure.</li>
<li><a title="Red Gate Data Compare" href="http://www.red-gate.com/products/SQL_Data_Compare/index.htm" target="_self">Red Gate</a> Data Compare &#8211; similar to SQL Compare with the caveat that it compares the contents of two databases and automatically synchronizes your data.</li>
<li><a title="Red Gate SQL Generator" href="http://www.red-gate.com/products/SQL_Data_Generator/index.htm" target="_blank">Red Gate</a> SQL Data Generator - One-Click realistic data generation based on the column types you specify. </li>
<li><a title="Navicat for MySQL" href="http://mysql.navicat.com/" target="_self">Navicat</a> for MySQL &#8211; Best GUI for MySQL database administration.  Distributed for Windows, OS X, and Linux.</li>
<li><a title="Navicat for Oracle" href="http://oracle.navicat.com/" target="_self">Navicat</a> for Oracle &#8211; Just released two weeks ago.  Compatible with oracle 8i to current and supports all objects including directory, tablespace, synonym, materialized view, trigger, sequence, type and more. **Really looking forward to spending more time reviewing this product.</li>
</ul>
<p>Of course this list isn&#8217;t complete, but hopefully you are able to integrate some new tools into your life.  Also, <strong>please comment</strong> if you have any suggestions of items I&#8217;ve missed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/12/10/tools-of-the-trade-part-one/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MySQL OLD_PASSWORD Issue</title>
		<link>http://www.brianjeremy.com/2008/04/26/mysql-old_password-issue/</link>
		<comments>http://www.brianjeremy.com/2008/04/26/mysql-old_password-issue/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 22:14:22 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Databases]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=240</guid>
		<description><![CDATA[Many PHP developers out there are probably aware of the change in MySQL&#8217;s password hashing algorithm changes between version MySQL 4 and MySQL 5.  It requires you to update User passwords when upgrading your database version.  The syntax for how to do this is below.  However, I just ran into a situation [...]]]></description>
			<content:encoded><![CDATA[<p>Many <a title="PHP" href="http://www.php.net" target="_blank">PHP</a> developers out there are probably aware of the change in <a title="MySQL" href="http://www.mysql.com" target="_blank">MySQL</a>&#8217;s password hashing algorithm changes between version MySQL 4 and MySQL 5.  It requires you to update User passwords when upgrading your database version.  The syntax for how to do this is below.  However, I just ran into a situation while doing maintenance on a web environment that required me to switch database servers and  move and existing MySQL version 4.1.21-community-nt to 4.1.22-community-nt.  Much to my surprise, this password hash change existing in MySQL 4.x even between minor releases.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">SET PASSWORD FOR 'user'@'host' = OLD_PASSWORD('original-password');</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/04/26/mysql-old_password-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private Beta Testing</title>
		<link>http://www.brianjeremy.com/2008/04/06/private-beta-testing/</link>
		<comments>http://www.brianjeremy.com/2008/04/06/private-beta-testing/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 06:26:16 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Grails]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Startups]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/?p=236</guid>
		<description><![CDATA[
Well, the time has come.  Its been a year and a half in the making&#8230; Please register for the private beta testing of Zigabid.com.  For the promotion code enter &#8220;BJK&#8221; and you&#8217;ll get priority selection.
]]></description>
			<content:encoded><![CDATA[<p><a title="Zigabid - A Ticket Revolution" href="http://www.zigabid.com" target="_blank"><img src="http://www.brianjeremy.com/_images/logos/zig_tiny.jpg" alt="" width="167" height="59" /></a></p>
<p>Well, the time has come.  Its been a year and a half in the making&#8230; Please register for the private beta testing of <a title="Zigabid - A Ticket Revolution" href="http://www.zigabid.com" target="_blank">Zigabid.com</a>.  For the promotion code enter &#8220;BJK&#8221; and you&#8217;ll get priority selection.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/04/06/private-beta-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selecting Random Rows in SQL Server 2005</title>
		<link>http://www.brianjeremy.com/2008/02/03/selecting-random-rows-in-sql-server-2005/</link>
		<comments>http://www.brianjeremy.com/2008/02/03/selecting-random-rows-in-sql-server-2005/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 16:26:35 +0000</pubDate>
		<dc:creator>brian</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://www.brianjeremy.com/2008/02/03/selecting-random-rows-in-sql-server-2005/</guid>
		<description><![CDATA[Here is a quick an easy way to select random rows in SQL Server 2005:

SELECT
     ColumnA, ColumnB
FROM
     dbo.&#91;TableName&#93;
ORDER BY
     NEWID&#40;&#41;

]]></description>
			<content:encoded><![CDATA[<p>Here is a quick an easy way to select random rows in SQL Server 2005:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span>
     ColumnA<span style="color: #66cc66;">,</span> ColumnB
<span style="color: #993333; font-weight: bold;">FROM</span>
     dbo<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>TableName<span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span>
     NEWID<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.brianjeremy.com/2008/02/03/selecting-random-rows-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
