| Author |
Message |
MKFerret
Joined: 03 Jan 2007 Posts: 3
|
Posted: Sun Feb 11, 2007 9:22 pm Post subject: Smart Rename giving error "Failed to register database" |
|
|
Perhaps I'm missing something simple, but the Smart Rename feature is giving me the error "Failed to register database" after I select a New name and click Next. Has anyone seen (or more importantly, fixed) this problem?
Best Regards,
Mike |
|
| Back to top |
|
 |
MKFerret
Joined: 03 Jan 2007 Posts: 3
|
Posted: Sun Feb 11, 2007 9:32 pm Post subject: Old fashioned "fix" |
|
|
... I _suppose_ I should cancel the question ... shutting down SQL Management Studio (and Visual Studio) and restarting just SQL Management Studio works upon retrying. I don't know what got locked to prevent the creation of a script, but I'm back up and running now.
All the best,
Mike |
|
| Back to top |
|
 |
Germo
Joined: 07 Sep 2009 Posts: 4 Location: Berlin
|
Posted: Mon Sep 07, 2009 5:49 pm Post subject: |
|
|
I also get this error, but I can't resolve it by restarting SSMS.
If I am connected to one server (I am sysadmin on this server) I have no problems, if I am connected to another server, I get the error: "Failed to register database". I am db_owner on the database, but only dbcreator and public on this server.
the second server:
Microsoft SQL Server Enterprise Edition (64-bit)
Version 10.0.2723.0
What rights I need on the server? |
|
| Back to top |
|
 |
Chris Auckland
Joined: 24 Oct 2006 Posts: 710 Location: Red Gate Software Ltd.
|
Posted: Tue Sep 08, 2009 6:58 pm Post subject: |
|
|
If you are unable to have dbo or sysadmin privileges on the server, you should be able to read the necessary metadata to register the database if you:
GRANT VIEW DEFINITION TO [{username}]
I hope this helps. _________________ Chris |
|
| Back to top |
|
 |
Germo
Joined: 07 Sep 2009 Posts: 4 Location: Berlin
|
Posted: Wed Sep 09, 2009 10:19 am Post subject: |
|
|
This does not solve the problem:
use [master]
GO
GRANT VIEW ANY DEFINITION TO [{username}]
GO
I am the db_owner on the database, so I think I have all rights I need on the database. But it seams I need some more rights on the server or in a system database for using Smart Rename. Which? |
|
| Back to top |
|
 |
Chris Auckland
Joined: 24 Oct 2006 Posts: 710 Location: Red Gate Software Ltd.
|
Posted: Wed Sep 09, 2009 1:32 pm Post subject: |
|
|
Sorry Germo, my mistake.
I just noticed you are using SQL 2008. You will also need:
GRANT VIEW SERVER STATE TO [{username}]
I've tested this myself this time, and it resolved the 'failed to register database' issue for me. _________________ Chris |
|
| Back to top |
|
 |
Germo
Joined: 07 Sep 2009 Posts: 4 Location: Berlin
|
Posted: Wed Sep 09, 2009 3:32 pm Post subject: |
|
|
yes, this works!
Thank you |
|
| Back to top |
|
 |
|