<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 &#8211; Use ALTER DATABASE MODIFY NAME Instead of sp_renameDB to rename</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Taleem</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-159557</link>
		<dc:creator><![CDATA[Taleem]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 16:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-159557</guid>
		<description><![CDATA[this command run succesfulyy thnaks to all member who provide 11]]></description>
		<content:encoded><![CDATA[<p>this command run succesfulyy thnaks to all member who provide 11</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-91461</link>
		<dc:creator><![CDATA[Imran]]></dc:creator>
		<pubDate>Wed, 06 Oct 2010 10:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-91461</guid>
		<description><![CDATA[Dear Pinaldave,

1) Is anything like database alias exists there in SQL Server 2005? i.e. a feature similar to table alias.

2) Is there any way of overcoming the nvarchar(max) size which is 4000 chars. So that a longer, infact a very long, sql string can be passed to SP_ExecuteSQL procedure?

Actually, I need to run my crystal reports&#039; SP&#039;s on different databases (Currrent and Historic/Archive DB) based on the reporting date passed as prameter to SP.

I need your expert opnion on this and if possible a Way to acheive this.


Regards,

Imran

PS: Table names in the both the current and history databases are the same i.e. same schema.]]></description>
		<content:encoded><![CDATA[<p>Dear Pinaldave,</p>
<p>1) Is anything like database alias exists there in SQL Server 2005? i.e. a feature similar to table alias.</p>
<p>2) Is there any way of overcoming the nvarchar(max) size which is 4000 chars. So that a longer, infact a very long, sql string can be passed to SP_ExecuteSQL procedure?</p>
<p>Actually, I need to run my crystal reports&#8217; SP&#8217;s on different databases (Currrent and Historic/Archive DB) based on the reporting date passed as prameter to SP.</p>
<p>I need your expert opnion on this and if possible a Way to acheive this.</p>
<p>Regards,</p>
<p>Imran</p>
<p>PS: Table names in the both the current and history databases are the same i.e. same schema.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siddhesh</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-69659</link>
		<dc:creator><![CDATA[Siddhesh]]></dc:creator>
		<pubDate>Fri, 07 May 2010 12:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-69659</guid>
		<description><![CDATA[Hi Sreedhar,

You can change the case with Alter Database Command as specified in start of the forum.

Ex.
ALTER DATABASE MyDataWarehouse MODIFY NAME = MyDatawarehouse

Regards,
Siddhesh]]></description>
		<content:encoded><![CDATA[<p>Hi Sreedhar,</p>
<p>You can change the case with Alter Database Command as specified in start of the forum.</p>
<p>Ex.<br />
ALTER DATABASE MyDataWarehouse MODIFY NAME = MyDatawarehouse</p>
<p>Regards,<br />
Siddhesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sreedhar</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-68667</link>
		<dc:creator><![CDATA[Sreedhar]]></dc:creator>
		<pubDate>Mon, 03 May 2010 19:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-68667</guid>
		<description><![CDATA[Hi Dave,

I have a situation where the db name is wrongly cased. 
Say, &quot;MyDataWarehouse&quot; and would like to change to &quot;MyDatawarehouse&quot;. How can we do it? 

SQL 2005. I tried renaming it in SQL Mgmt Studio and it did not work.

The other option is Either
- Take the db offline, drop the db and recreate the db and attach the files.
- Take complete backup, drop the db, recreate the db and restore it...

Cheers,

Sreedhar]]></description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have a situation where the db name is wrongly cased.<br />
Say, &#8220;MyDataWarehouse&#8221; and would like to change to &#8220;MyDatawarehouse&#8221;. How can we do it? </p>
<p>SQL 2005. I tried renaming it in SQL Mgmt Studio and it did not work.</p>
<p>The other option is Either<br />
- Take the db offline, drop the db and recreate the db and attach the files.<br />
- Take complete backup, drop the db, recreate the db and restore it&#8230;</p>
<p>Cheers,</p>
<p>Sreedhar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-59249</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Fri, 01 Jan 2010 12:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-59249</guid>
		<description><![CDATA[Hi Saurabh,

First alter the database to single_user mode. This way all the connection would be broken and database would be available to be exclusively locked. Then again alter the database to multi_user mode and perform your operation.

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hi Saurabh,</p>
<p>First alter the database to single_user mode. This way all the connection would be broken and database would be available to be exclusively locked. Then again alter the database to multi_user mode and perform your operation.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-59223</link>
		<dc:creator><![CDATA[Saurabh]]></dc:creator>
		<pubDate>Fri, 01 Jan 2010 04:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-59223</guid>
		<description><![CDATA[Server: Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.

This Means?]]></description>
		<content:encoded><![CDATA[<p>Server: Msg 5030, Level 16, State 2, Line 1<br />
The database could not be exclusively locked to perform the operation.</p>
<p>This Means?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Nelson</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-57604</link>
		<dc:creator><![CDATA[Steve Nelson]]></dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-57604</guid>
		<description><![CDATA[Neither method works for me.  I&#039;ve dug though loads of documentation trying to find the answer and nothing works.  MS products are garbage.]]></description>
		<content:encoded><![CDATA[<p>Neither method works for me.  I&#8217;ve dug though loads of documentation trying to find the answer and nothing works.  MS products are garbage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murugesan</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-57535</link>
		<dc:creator><![CDATA[Murugesan]]></dc:creator>
		<pubDate>Thu, 12 Nov 2009 04:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-57535</guid>
		<description><![CDATA[Thanks for info, its working fine for me.]]></description>
		<content:encoded><![CDATA[<p>Thanks for info, its working fine for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-56433</link>
		<dc:creator><![CDATA[Mahesh]]></dc:creator>
		<pubDate>Mon, 05 Oct 2009 11:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-56433</guid>
		<description><![CDATA[Thanks, Done]]></description>
		<content:encoded><![CDATA[<p>Thanks, Done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bunthach</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-55757</link>
		<dc:creator><![CDATA[Bunthach]]></dc:creator>
		<pubDate>Thu, 10 Sep 2009 01:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-55757</guid>
		<description><![CDATA[I have problem ALTER DATABASE
ALTER Database PersonnelMS SET Partner=&#039;TCP://192.168.0.4:5022&#039;

It shows message 
Msg 1486, Level 14, State 2, Line 2
Database Mirroring Transport is disabled in the endpoint configuration.]]></description>
		<content:encoded><![CDATA[<p>I have problem ALTER DATABASE<br />
ALTER Database PersonnelMS SET Partner=&#8217;TCP://192.168.0.4:5022&#8242;</p>
<p>It shows message<br />
Msg 1486, Level 14, State 2, Line 2<br />
Database Mirroring Transport is disabled in the endpoint configuration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-47728</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sun, 01 Mar 2009 04:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-47728</guid>
		<description><![CDATA[@Wendy,

If you want to change database name, then no user should be connected  to database.

First keep the database in single user mode and then change the database name or disconnect all users from that database and then you should be able to rename database.

Regards
IM.]]></description>
		<content:encoded><![CDATA[<p>@Wendy,</p>
<p>If you want to change database name, then no user should be connected  to database.</p>
<p>First keep the database in single user mode and then change the database name or disconnect all users from that database and then you should be able to rename database.</p>
<p>Regards<br />
IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wendy</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-47584</link>
		<dc:creator><![CDATA[Wendy]]></dc:creator>
		<pubDate>Fri, 27 Feb 2009 14:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-47584</guid>
		<description><![CDATA[I am getting the same error as Eric: 
Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.

How was this resolved?
Thanks in advance!]]></description>
		<content:encoded><![CDATA[<p>I am getting the same error as Eric:<br />
Msg 5030, Level 16, State 2, Line 1<br />
The database could not be exclusively locked to perform the operation.</p>
<p>How was this resolved?<br />
Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shabana</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-43888</link>
		<dc:creator><![CDATA[Shabana]]></dc:creator>
		<pubDate>Fri, 24 Oct 2008 06:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-43888</guid>
		<description><![CDATA[Thank you so much Rich !!!! your seven stpes help me a great deal...]]></description>
		<content:encoded><![CDATA[<p>Thank you so much Rich !!!! your seven stpes help me a great deal&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guru</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-42042</link>
		<dc:creator><![CDATA[Guru]]></dc:creator>
		<pubDate>Tue, 26 Aug 2008 06:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-42042</guid>
		<description><![CDATA[Hi Sir

I was able to rename the database..but the logical name of the database didnot get renamed..is there any query to rename the database&#039;s logical name as well]]></description>
		<content:encoded><![CDATA[<p>Hi Sir</p>
<p>I was able to rename the database..but the logical name of the database didnot get renamed..is there any query to rename the database&#8217;s logical name as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-41186</link>
		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Fri, 01 Aug 2008 15:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-41186</guid>
		<description><![CDATA[when i am try to rename database it shows me following error msg
Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.

how do i resolve this problem?]]></description>
		<content:encoded><![CDATA[<p>when i am try to rename database it shows me following error msg<br />
Msg 5030, Level 16, State 2, Line 1<br />
The database could not be exclusively locked to perform the operation.</p>
<p>how do i resolve this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-38164</link>
		<dc:creator><![CDATA[Pedro]]></dc:creator>
		<pubDate>Fri, 16 May 2008 02:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-38164</guid>
		<description><![CDATA[How about the physical name? How do you rename it?]]></description>
		<content:encoded><![CDATA[<p>How about the physical name? How do you rename it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-34479</link>
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Fri, 21 Mar 2008 02:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-34479</guid>
		<description><![CDATA[I renamed some databases since we need to standardize the naming convention.  Unfortunately, it broke the SSIS package that used to be working.  Somehow, it does not want to save the password even going directly to the configuration file.  Any suggestion?]]></description>
		<content:encoded><![CDATA[<p>I renamed some databases since we need to standardize the naming convention.  Unfortunately, it broke the SSIS package that used to be working.  Somehow, it does not want to save the password even going directly to the configuration file.  Any suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramu</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-33179</link>
		<dc:creator><![CDATA[ramu]]></dc:creator>
		<pubDate>Tue, 22 Jan 2008 06:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-33179</guid>
		<description><![CDATA[how to add contraint in alter query]]></description>
		<content:encoded><![CDATA[<p>how to add contraint in alter query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anjum</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-5430</link>
		<dc:creator><![CDATA[Anjum]]></dc:creator>
		<pubDate>Wed, 18 Jul 2007 20:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-5430</guid>
		<description><![CDATA[most of the time when i need any help i got here everything
and it is not good for me besides it is beneficial for all the DBA community.
you did great job.........]]></description>
		<content:encoded><![CDATA[<p>most of the time when i need any help i got here everything<br />
and it is not good for me besides it is beneficial for all the DBA community.<br />
you did great job&#8230;&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4830</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Fri, 13 Jul 2007 15:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4830</guid>
		<description><![CDATA[Chris L,

I have updated my post based on your question. 
Thanks for suggestion.

Regards,
Pinal Dave (SQLAuthority.com)]]></description>
		<content:encoded><![CDATA[<p>Chris L,</p>
<p>I have updated my post based on your question.<br />
Thanks for suggestion.</p>
<p>Regards,<br />
Pinal Dave (SQLAuthority.com)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4828</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Fri, 13 Jul 2007 15:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4828</guid>
		<description><![CDATA[Yes this will drop it.

This is sample example. Not the real time scenario. In real world, you do not need to drop the new database.

Regards,
Pinal Dave (http://www.SQLAuthority.com)]]></description>
		<content:encoded><![CDATA[<p>Yes this will drop it.</p>
<p>This is sample example. Not the real time scenario. In real world, you do not need to drop the new database.</p>
<p>Regards,<br />
Pinal Dave (<a href="http://www.SQLAuthority.com" rel="nofollow">http://www.SQLAuthority.com</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris L</title>
		<link>http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4827</link>
		<dc:creator><![CDATA[Chris L]]></dc:creator>
		<pubDate>Fri, 13 Jul 2007 15:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/13/sql-server-2005-use-alter-database-modify-name-instead-of-sp_renamedb-to-rename/#comment-4827</guid>
		<description><![CDATA[So, if you rename the old database with the new name and call drop on the test database, won&#039;t that drop the old DB with the new name?]]></description>
		<content:encoded><![CDATA[<p>So, if you rename the old database with the new name and call drop on the test database, won&#8217;t that drop the old DB with the new name?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

