Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

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 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>