<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>TheBernharts.com &#187; tech</title>
	<atom:link href="http://www.thebernharts.com/tag/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebernharts.com</link>
	<description>This, that, and the other thing.</description>
	<lastBuildDate>Fri, 23 Jul 2010 19:06:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<link rel="http://api.friendfeed.com/2008/03#sup" xmlns="http://www.w3.org/2005/Atom" type="application/json" href="http://friendfeed.com/api/public-sup.json#bc1147d041"/>		<item>
		<title>Restoring a SQL database to a new host with limited accessibility</title>
		<link>http://www.thebernharts.com/2009/09/restoring-a-sql-database-to-a-new-host-with-limited-accessibility/</link>
		<comments>http://www.thebernharts.com/2009/09/restoring-a-sql-database-to-a-new-host-with-limited-accessibility/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 19:36:16 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[neil]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Microsoft SQL Server 2005]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.thebernharts.com/?p=602</guid>
		<description><![CDATA[How I moved a backed up SQL 2005 database to a server hosted at godaddy. The new server did not allow restoring backups that were not stored on the hosted server, and I had no access to place the .BAK file on the hosted server. Interested? Read on...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thebernharts.com/wp-content/uploads/2009/09/sql.gif" rel="lightbox[602]"><img class="alignright size-medium wp-image-609" style="margin: 0 0 5px 5px;" title="sql" src="http://www.thebernharts.com/wp-content/uploads/2009/09/sql-300x212.gif" alt="sql" width="300" height="212" /></a>I&#8217;ve taken a side job for some extra cash, which involves some web development work, including MS SQL database stuff. Up until now, I&#8217;ve only worked on SQL databases that I have complete administrative access to&#8230; i.e., they are steps away from me and I&#8217;ve set them up personally. This means that I&#8217;m very comfortable with importing, exporting, backing up, restoring, etc&#8230;. up until this project.</p>
<p>Here&#8217;s the scenario: I have a .BAK file of the database that was hosted on a MSSQL Server 2005 at my previous employers data-center. I need to re-create that database on a hosted MS SQL Server 2005 system at GoDaddy.com. No worries, I thought. I will just create my new database, do a manual back up of it. Then restore it and point it to my .BAK file from the previous server. That concept is old-hat to me, as I&#8217;ve done it countless times&#8230; <span id="more-602"></span>on systems that I have complete control and access to. This time it&#8217;s on a server that I have limited access to. GoDaddy only permits SQL restores from files that were created by the host system, and stored on it&#8217;s local disk. And&#8230; I have no rights to place my .BAK file onto the host db server. So, I put on my thinking cap and thunk this one out.</p>
<p>Now, I must fully expose that I am not a SQL DBA in any way, shape, or form. Systems Administration is my background&#8230; I can install, configure, and maintain the heck out of a MS SQL database. But, I have extremely limited skills with SQL programming and queries. So, here&#8217;s what I came up with:</p>
<p>I have SQL 2005 Express running on my Vista system. Figured I could use that to my advantage here to get the data moved. I&#8217;ll break it down into pieces. I have SQL Express connected to my local instance, as well as the remote instance.</p>
<ul>
<li>Create a new database (in my local instance, I created a new database&#8230; we&#8217;ll call it dbFOO)</li>
<li>Make a back up of dbFOO</li>
<li>Do a restore of dbFOO, and change it to grab the data from the .BAK file from the old system (this is the step that I would have loved to be able to do on the remote database server)
<ul>
<li>Change the options so that it overwrites the existing database</li>
</ul>
</li>
<li>On the remote instance, create a new database named dbFOO (db names must be the same since we&#8217;re using some queries and we want to limit how much manual editing we need to do)</li>
<li>On the local instance, right-click on one of the tables and choose &#8220;Script Table as&#8230; &gt; CREATE To &gt; Clipboard&#8221;</li>
<li>On the remote instance, right-click on the database and choose &#8220;New Query&#8221;</li>
<li>In the query window, paste your clipboard contents
<ul>
<li>since your database names are the same, this query will run without issues on the remote instance.</li>
</ul>
</li>
<li>Execute the query. Boom, the table is now created on the remote instance. Rinse and repeat for the rest of the local instance tables.
<ul>
<li>Tip: keep that query window open, and just replace the sql script with the once for the next table and execute it. A little time-saver.</li>
</ul>
</li>
<li>Once the tables are created, right-click on the dbFOO database on the remote instance. Choose &#8220;Tasks &gt; Import Data&#8221;
<ul>
<li>WAIT! SQL Express doesn&#8217;t have DTS built in, so how am I able to do this? I once had SQL 2000 Ent. Mgr. installed and I held on to the admin tools, which included DTS. It does spit out some errors when starting up, but I just launch dtswizard.exe and I&#8217;m able to use it for my SQL 2005 Express databases.</li>
</ul>
</li>
<li>Choose the local instance as your source, and your remote instance as your destination. Set up dbFOO as the database, of course.</li>
<li>Go through all of the wizard steps, choose the option for &#8220;copy data from one or more tables or views&#8221;.</li>
<li>Check the boxes for all the tables and make any adjustments. (I had to enable identity inserts)</li>
<li>Finish the wizard and blam, there is all of the data.</li>
</ul>
<p>Are there other ways to accomplish what I needed? Maybe so. Is this the most graceful way to accomplish what I needed? Probably not. Do I care? Nope&#8230; I got what I needed done. It actually took me longer to write this post than it did to do all the steps listed above.</p>
<p>If you have other ideas or ways that this could have been done, please leave a comment. I love to document this stuff for other out there that could be in the same pickle I was, to give them some ideas or help in their situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebernharts.com/2009/09/restoring-a-sql-database-to-a-new-host-with-limited-accessibility/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2009/09/sql-150x150.gif" />
		<media:content url="http://www.thebernharts.com/wp-content/uploads/2009/09/sql.gif" medium="image">
			<media:title type="html">sql</media:title>
			<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2009/09/sql-150x150.gif" />
		</media:content>
	</item>
		<item>
		<title>How I Use My iPhone To Track My Beer Allergy</title>
		<link>http://www.thebernharts.com/2009/06/how-i-use-my-iphone-to-track-my-allergy/</link>
		<comments>http://www.thebernharts.com/2009/06/how-i-use-my-iphone-to-track-my-allergy/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 15:15:41 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[neil]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[BeerPad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.thebernharts.com/?p=538</guid>
		<description><![CDATA[The iPhone application that helps me keep track of my food (beer) allergy: BeerPad]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m allergic to some beer, but not all beer. It&#8217;s not a specific kind or style of beer either. This is a problem for me because I really like beer&#8230; not just some beers, but all sorts of beers. I love to try new beers &#8230; which is tough with the allergy. With my iPhone, I&#8217;ve found an application that lets me keep track of all the beers that trigger my allergy.</p>
<p><a href="http://www.thebernharts.com/wp-content/uploads/2009/06/photo.jpg" rel="lightbox[538]"><img class="alignleft size-medium wp-image-541" style="margin: 0pt 10px 5px 0pt;" title="photo" src="http://www.thebernharts.com/wp-content/uploads/2009/06/photo-200x300.jpg" alt="photo" width="200" height="300" /></a>BeerPad is a nice little application for the iPhone that is designed for beer enthusiasts to keep track of their beer adventures. You can add beers that you try into the application and it keeps all sorts of information in its database for you.</p>
<p>Features include:</p>
<p>&#8211; Assign parameters to each beer from predefined lists. These include Style, Brewery, Region, and Pairings. Each of these lists are editable so that you can add items to them if they don&#8217;t exist.<br />
&#8211; Assign a photo to the beer. Choose from the camera roll, or take a new one. I am not a fan of the iPhone camera, so I search google images to find either the label or a good pic of the beer online, then save it to my phone and use that one. I discovered that once you assign the photo in BeerPad, you can remove it from your camera roll and it stays in BeerPad.<br />
&#8211; Assign a rating for the beer on a scale of 5 stars.<br />
&#8211; Several other free form parameters can be assigned. i.e., color, aroma, finish, etc.</p>
<ul></ul>
<p><span id="more-538"></span><br />
<a href="http://www.thebernharts.com/wp-content/uploads/2009/06/photo2.jpg" rel="lightbox[538]"><img class="alignright size-medium wp-image-542" style="margin: 0 0 5px 5px;" title="photo(2)" src="http://www.thebernharts.com/wp-content/uploads/2009/06/photo2-200x300.jpg" alt="photo(2)" width="200" height="300" /></a>Back to my alergy to some beers&#8230; if I drink a beer that I am allergic to, my throat swells up. Now, it&#8217;s not my airway but rather my esophagus. Regardless, it&#8217;s not comfortable and quite irritating. By the way, I&#8217;m also allergic to macadamia nuts, which I discovered before the beer allergy. My tactic on new beers is to take a few sips, then wait a good 5 &#8211; 10 minutes for a reaction. If there is one, I slide the beer over to a friend to finish. If there is no reaction, score one for me because I have a new beer that I know I can drink without worry.</p>
<p>Here&#8217;s where BeerPad comes in to help me. For the past year+ I&#8217;ve been adding beers to BeerPad; ones that I know are OK and also an new ones that I try. I use the rating system to track the bad beers. Well, they&#8217;re not necessarily bad, just bad for me to drink. I assign a single star to the beers that give me an allergic reaction. Any other beer that goes down without a ruckus gets 2 or more stars.</p>
<p>When I first figured out this allergy, about 8 or so years ago, I had to rely on written notes to remember which beers I could drink. The iPhone in general has improved my quality of life by keeping me more connected. But with apps like BeerPad, it makes it all the more helpful to me. Are there smart phone apps or tools that you use in ways that were not necessarily intended but help you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebernharts.com/2009/06/how-i-use-my-iphone-to-track-my-allergy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2009/06/photo-150x150.jpg" />
		<media:content url="http://www.thebernharts.com/wp-content/uploads/2009/06/photo.jpg" medium="image">
			<media:title type="html">photo</media:title>
			<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2009/06/photo-150x150.jpg" />
		</media:content>
		<media:content url="http://www.thebernharts.com/wp-content/uploads/2009/06/photo2.jpg" medium="image">
			<media:title type="html">photo(2)</media:title>
			<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2009/06/photo2-150x150.jpg" />
		</media:content>
	</item>
		<item>
		<title>Having trouble running an executable through RDP?</title>
		<link>http://www.thebernharts.com/2008/12/having-trouble-running-an-executable-through-rdp/</link>
		<comments>http://www.thebernharts.com/2008/12/having-trouble-running-an-executable-through-rdp/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 19:17:51 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[neil]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[rdp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.thebernharts.com/?p=287</guid>
		<description><![CDATA[Here's how to run that pesky executable that keeps telling you that you don't have permissions to do so!]]></description>
			<content:encoded><![CDATA[<p>Today I needed to install a utility on a remote Windows 2003 server. Thinking this would be a breeze, I copied the .exe installation file over the network to a directory on the server. I then logged in through RDP as local administrator on the server, located the file, and when I went to run it, I was given this error spat out to me: &#8220;Windows cannot access the specified device, path, or file.  You may not have the appropriate permissions to access the item.&#8221;</p>
<p>Huh? I&#8217;m the local admin on this here system&#8230; the hell you say I don&#8217;t have permissions to access this file!<br />
<span id="more-287"></span><br />
A quick search found that if you copy an executable to a remote system and try to run it via RDP, you get this message because the file is blocked by the operating system since it was copied from another computer. Apparently this is done to try and &#8216;protect&#8217; the destination computer.</p>
<p> </p>
<p><a href="http://www.thebernharts.dreamhosters.com/wp-content/uploads/2008/12/unblock.png" rel="lightbox[287]"><img class="size-full wp-image-288  alignright" title="unblock" src="http://www.thebernharts.dreamhosters.com/wp-content/uploads/2008/12/unblock.png" alt="Unblock" width="337" height="98" style="margin: 0 0 5px 5px;" /></a></p>
<p>Here&#8217;s the quick fix for it: Right-click on the executable file. On the General tab, you will see at the bottom (under the Attributes area) a section for &#8220;Security&#8221; that has an explaination for you. It says &#8220;This file came from another computer and might be blocked to help protect this computer&#8221;. (good lookin out, windows) Just click on the &#8220;Unblock&#8221; button, then click the &#8220;OK&#8221; button and try running the .exe again.</p>
<p>Boom! You&#8217;re done. Now, wasn&#8217;t that simple?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thebernharts.com/2008/12/having-trouble-running-an-executable-through-rdp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2008/12/unblock-150x98.png" />
		<media:content url="http://www.thebernharts.com/wp-content/uploads/2008/12/unblock.png" medium="image">
			<media:title type="html">unblock</media:title>
			<media:description type="html">Unblock</media:description>
			<media:thumbnail url="http://www.thebernharts.com/wp-content/uploads/2008/12/unblock-150x98.png" />
		</media:content>
	</item>
	</channel>
</rss>
