Permissions error when trying to sync with db at web hosts
Ben Mills
Posts: 50
I'm trying to sync a remote copy of a SQL Server 2000 database at my web hosting company with a local SQL Server 2005 copy. When I try, I get the following error message:
SELECT permission denied on object 'syslogins', database 'master', owner 'dbo'.
Does SQL Compare really need to access the master database? I'm surprised that any web hosting company allows this, although I know it works with another I use. Is there any way around this? If not, can you give me a list of the permissions I need so that I can ask for these permissions?
The weird thing is that I really don't want to sync the logins. I know they are different and that is fine.
I'm having the same issue with SQL Data Compare.
Thanks,
Ben
SELECT permission denied on object 'syslogins', database 'master', owner 'dbo'.
Does SQL Compare really need to access the master database? I'm surprised that any web hosting company allows this, although I know it works with another I use. Is there any way around this? If not, can you give me a list of the permissions I need so that I can ask for these permissions?
The weird thing is that I really don't want to sync the logins. I know they are different and that is fine.
I'm having the same issue with SQL Data Compare.
Thanks,
Ben
This discussion has been closed.
Comments
Yes under SQL 2000 we SELECT information from dbo.syslogins in order to get details about the logins. (A different mechanism is used under SQL2005)
The SQL Data Compare engine uses some of the base functionality of SQL Compare engine, this is why SQL Data Compare has the same issue.
I hope this helps.
David Connell
I'm sure there are technical reasons that you need to access the master database, but I can see why some web hosting companies would not want to give me any permissions to the master database. Hopefully moving to 2005 will help.
Thanks,
Ben
Yes SQL Compare will not directly access the master database when running under SQL 2005.
David
It has been pointed out to me that although we don’t make explicit links into master for SQL2005, many of the databases system views do. As a result there are many repercussions when denying a user access to master. You can verify this by using SQL Dependency Tracker. So moving over to SQL2005 will not help.
I setup a SQL 2000 Blank database, which had a user called Fred attached to it. Fred was denied access to master.
I then granted the following permissions,
GRANT SELECT ON dbo.syslogins TO Fred
Everything then worked OK. This is only a starting position. I hope this helps.
Best regards
David
Thanks,
Ben
I really think that there should be an option that eliminates the calls to the syslogins table if I'm not trying to sync the logins. All I want to do is sync the tables and stored procedures.
Thanks,
Ben
Unfortunately, it doesn't work for SQL Data Compare, which I like to use to get a local copy of the data to work with. SQL Data Compare also seems to need access to the master database.
I'm really lost without these tools. I've got so used to these tools being part of my development process that it's REALLY hard to lose them.
Ben