Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

sysdatabases - list all databases without sysadmin

$
0
0

Is there any way to have Master.dbo.sysdatabases return all databases on the instance without being a sysadmin? I've tried granting view any database but that doesn't work. It just returns master, tempdb, and the database you are running it from.

This is for a legacy app install that runs "select name from Master.dbo.sysdatabases" and then fails if it doesn't get the correct databases back.

Please note I'm referring to sysdatabases not the view sys.databases

Thanks,

Robert


Viewing all articles
Browse latest Browse all 15694

Trending Articles