Good Morning,
I have connected to my SQL Server 2005 – and have managed to list all of the databases on that server. Now I would like to run a check on each database to see if I have permission to view that database..
How would I go about this?
Many Thanks,
Joel
Firstly, you’ll need to find out all of the names in your DB server:
Then, you’ll have to run the following command for each database in order to get the permissions: