<?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>Dahlin Development - Blog &#187; SQL Server</title>
	<atom:link href="http://blog.dahlindevelopment.com/category/web-development/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dahlindevelopment.com</link>
	<description></description>
	<lastBuildDate>Fri, 05 Oct 2012 03:10:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>MS SQL and MySQL Database Backups on Rackspace Cloud</title>
		<link>http://blog.dahlindevelopment.com/2010/10/ms-sql-and-mysql-database-backups-on-rackspace-cloud/</link>
		<comments>http://blog.dahlindevelopment.com/2010/10/ms-sql-and-mysql-database-backups-on-rackspace-cloud/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 01:37:45 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rackspace Cloud]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=316</guid>
		<description><![CDATA[Recently, I was asked to setup an automatic database backup process for some cloud sites.  Not having much experience with database backup, let alone setting up an automatic process.  I plowed ahead on the project. I was directed to this link for the MS SQL Databases: http://cloudsites.rackspacecloud.com/index.php/How_can_I_create_a_cron_job_to_backup_my_MSSQL_database%3F Following the above link was more than helpful.  [...]]]></description>
				<content:encoded><![CDATA[<p>Recently, I was asked to setup an automatic database backup process for some cloud sites.  Not having much experience with database backup, let alone setting up an automatic process.  I plowed ahead on the project.</p>
<p>I was directed to this link for the MS SQL Databases: <a href="http://cloudsites.rackspacecloud.com/index.php/How_can_I_create_a_cron_job_to_backup_my_MSSQL_database%3F">http://cloudsites.rackspacecloud.com/index.php/How_can_I_create_a_cron_job_to_backup_my_MSSQL_database%3F</a></p>
<p>Following the above link was more than helpful.  Although, I still ran into an error after running through the directions.  “curl: (6) Couldn’t resolve host ‘backupdb.asp’ ”  My first mistake was, I was using the linux path instead of the windows unc path in the backup.asp file.  My second mistake was I didn’t enter a full url for the command to run in the cron job setup.  After fixing those simple mishaps, I now have an automatic backup running for my sites.</p>
<p>For MySQL Databases, I was directed to this site: <a href="http://cloudsites.rackspacecloud.com/index.php/How_do_I_create_a_cron_job_to_backup_my_MySQL_database%3F">http://cloudsites.rackspacecloud.com/index.php/How_do_I_create_a_cron_job_to_backup_my_MySQL_database%3F</a></p>
<p>I can’t say that I’m at all familiar with shell scripting or that I even know what the code is really doing.  For the MySQL Database process I did wonder off the directed path and had found another backup tool, phpMyBackupPro (http://www.phpmybackuppro.net/).  This tool can be easily installed on your site and will create an automatic backup for you.  Using this tool for multiple sites isn’t what it was designed for, unless you want to install this tool on each site.  No thank you.</p>
<p>After that little adventure, I got back on my directed path.  The error I found this time was “No such file or directory”.  After reviewing the shell script multiple times, I couldn’t find anything wrong.  I did some searching and found this:</p>
<p>#!/bin/bash<br />
Backupdir= *******.com/backups<br />
backupfile=`date +backup-%d-%m-%y_%H.sql`<br />
tarfile=mysqlbackup.tar<br />
cd $backupdir<br />
mysqldump &#8211;opt -A -h ******** &#8211;password=****** -u ******* &gt; $backupfile<br />
gunzip &#8220;$tarfile&#8221;.gz<br />
tar rf $tarfile $backupfile &amp;&gt; /dev/null<br />
gzip $tarfile<br />
rm $backupfile</p>
<p><em>*replace the “*” with actual information</em></p>
<p>I plugged in the information for the script then continued setting up the cron job per the original directions in the above link.  The first time this script runs, you will get a “File Not Found”.  Run the script a second time and the error is gone.  I’m now getting automatic backups of my MySQL Databases.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.dahlindevelopment.com%2F2010%2F10%2Fms-sql-and-mysql-database-backups-on-rackspace-cloud%2F&amp;title=MS%20SQL%20and%20MySQL%20Database%20Backups%20on%20Rackspace%20Cloud" id="wpa2a_2"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2010/10/ms-sql-and-mysql-database-backups-on-rackspace-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2008 &#8211; Saving Changes is not permitted.</title>
		<link>http://blog.dahlindevelopment.com/2009/11/sql-server-2008-saving-changes-is-not-permitted/</link>
		<comments>http://blog.dahlindevelopment.com/2009/11/sql-server-2008-saving-changes-is-not-permitted/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 13:12:19 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=124</guid>
		<description><![CDATA[When trying to save a table when inserting a new column other than at the end I ran into this error: Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the [...]]]></description>
				<content:encoded><![CDATA[<p>When trying to save a table when inserting a new column other than at the end I ran into this error:</p>
<div class="greyfullbox">
<p>Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.</p></div>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/11/sql2k8save.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="sql2k8save" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/11/sql2k8save_thumb.png" border="0" alt="sql2k8save" width="442" height="362" /></a></p>
<p><strong>Solution:<br />
</strong>In Management Studio, Tools –&gt; Options then go to the Designer Page and uncheck &#8220;Prevent saving changes that require table re-creation&#8221;.</p>
<p><em>Solution found at: </em><a title="http://pragmaticworks.com/community/blogs/brianknight/archive/2008/06/04/sql-server-2008-designer-behavior-change-saving-changes-not-permitted.aspx" href="http://pragmaticworks.com/community/blogs/brianknight/archive/2008/06/04/sql-server-2008-designer-behavior-change-saving-changes-not-permitted.aspx"><em>http://pragmaticworks.com/community/blogs/brianknight/archive/2008/06/04/sql-server-2008-designer-behavior-change-saving-changes-not-permitted.aspx</em></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.dahlindevelopment.com%2F2009%2F11%2Fsql-server-2008-saving-changes-is-not-permitted%2F&amp;title=SQL%20Server%202008%20%E2%80%93%20Saving%20Changes%20is%20not%20permitted." id="wpa2a_4"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/11/sql-server-2008-saving-changes-is-not-permitted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Server 2008 Install &#8211; Restart Computer Failed</title>
		<link>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/</link>
		<comments>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 20:34:36 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=110</guid>
		<description><![CDATA[When installing SQL Server 2008 today I ran into an error right away.&#160; In testing the Setup Support Rules the “Restart computer” operation check failed. After a bit of Binging I found this thread: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/ It talks about deleting any registry settings with a value of “PendingFileRenameOperations&#34; in the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&#34; Open your Windows [...]]]></description>
				<content:encoded><![CDATA[<p>When installing SQL Server 2008 today I ran into an error right away.&#160; In testing the Setup Support Rules the “Restart computer” operation check failed.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/sql2k8installerror.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="sql2k8installerror" border="0" alt="sql2k8installerror" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/sql2k8installerror_thumb.png" width="487" height="364" /></a> </p>
<p>After a bit of Binging I found this thread: <a href="http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/">http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/</a></p>
<p>It talks about deleting any registry settings with a value of “PendingFileRenameOperations&quot; in the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&quot; </p>
<p>Open your Windows programs type “regedit.exe” in the search then click enter. Now drill down to the Session Manager key.&#160; Look for any value with “Pending FileRenameOperations” and delete it.</p>
<p>Go back to the SQL Server 2008 setup and rerun it.&#160; Everything should pass now and you can proceed.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/regedit.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="regedit" border="0" alt="regedit" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/regedit_thumb.png" width="499" height="361" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.dahlindevelopment.com%2F2009%2F09%2Fsql-server-2008-install-restart-computer-failed%2F&amp;title=Sql%20Server%202008%20Install%20%E2%80%93%20Restart%20Computer%20Failed" id="wpa2a_6"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Restoring SQL Server DB backup</title>
		<link>http://blog.dahlindevelopment.com/2009/04/error-restoring-sql-server-db-backup/</link>
		<comments>http://blog.dahlindevelopment.com/2009/04/error-restoring-sql-server-db-backup/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 03:54:00 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=61</guid>
		<description><![CDATA[Scenerio: I had a web application that I developed on my local machine.&#160; When I finished it I made a backup of the database to deploy to the staging server. I uploaded it to the server then went to restore the db on the server, that is when I received this error: Restore failed for [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Scenerio:</strong> I had a web application that I developed on my local machine.&#160; When I finished it I made a backup of the database to deploy to the staging server.</p>
<p>I uploaded it to the server then went to restore the db on the server, that is when I received this error: </p>
<div class="greyboxfull"><em>Restore failed for Server ‘staging’. (Microsoft.SqlServer.Smo)
<p>Additional information:        <br />System.Data.SqlClient.SqlError: Directory lookup for the file “path.db.mdf” failed with the operating system error 2(The system cannot find the specified.). (Microsoft.SqlServer.Smo) </p>
<p>   </em></div>
<p>&#160;<a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/04/restoreerror.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="RestoreError" border="0" alt="RestoreError" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/04/restoreerror-thumb.gif" width="468" height="135" /></a> </p>
<p><strong>Solution: </strong>The location of where my database on my local machine was different than that on the server.&#160; I had to update the database location on the server.&#160; </p>
<p>This was done by when restoring clicking on the options tab.&#160; Then updating the paths of the Original File Name to where the database data is stored on the server.&#160; I found this path out by looking to see where the current ones were stored.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/04/restoreerrorsolution.gif"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="RestoreErrorSolution" border="0" alt="RestoreErrorSolution" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/04/restoreerrorsolution-thumb.gif" width="477" height="428" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.dahlindevelopment.com%2F2009%2F04%2Ferror-restoring-sql-server-db-backup%2F&amp;title=Error%20Restoring%20SQL%20Server%20DB%20backup" id="wpa2a_8"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/04/error-restoring-sql-server-db-backup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
