views:

22

answers:

1

How do I rename a database in Server Explorer on Visual Studio 2008? I changed the filename using Rename on the context menu, but that just changed the filename, not the name in SQL Server (2005 Express).

Also, is there an easy-to-use management tool like PHP MyAdmin that I can use? Or is it easier to just use VS 2008 Server Explorer?

Thanks!

+1  A: 

Find SQL Management Studio Express 2005 for all your common tasks in dealing with the database. You'll find it more fully-featured than Visual Studio, and provides the functionality you're used to from PhpMyAdmin.

To rename your database, create a new query, either in VS or SSMS:

EXEC sp_renamedb 'oldDB_Name', 'newDB_Name' 
p.campbell
Thanks! I will try it.
B Seven
I was able to rename it through SQL Management Studio Express 2005.
B Seven