SELECT permission denied on object 'sysdatabases'
amumaugh
Posts: 17 Bronze 1
I get the following error when trying to reference my 2000 server from an SSMS query connected to my 2008 R2 server. I know, I shouldn't still have a 2000 server but that's the reality.
SELECT permission denied on object 'sysdatabases', database 'master', owner 'dbo'.
Steps to reproduce:
Connect to SQL2008R2 server. Open query window. Type SQL2000 server name and "." which would usually bring up SQL Prompt window with database names but instead gives me the error.
I can't figure out where the permission error is coming from because I can connect directly to the SQL2000 instance with the same account and run a direct select against master.sysdatabases with no problems.
SELECT permission denied on object 'sysdatabases', database 'master', owner 'dbo'.
Steps to reproduce:
Connect to SQL2008R2 server. Open query window. Type SQL2000 server name and "." which would usually bring up SQL Prompt window with database names but instead gives me the error.
I can't figure out where the permission error is coming from because I can connect directly to the SQL2000 instance with the same account and run a direct select against master.sysdatabases with no problems.
Comments
Can you let me know the exact SQL Prompt version you're using? I don't get the same problem with my SQL 2000 instance.
Do you get teh same problem if you use a sysadmin account?
I was using a sysadmin account when I first encountered the error but tried it with another just to be on the safe side. I get the error with either account.
Try upgrading to 5.2, because that's the version I tested it it without any problems.
Does this happen will all databases you connect to?
Thanks for letting me know how you solved the problem.