Normally to see all the databases in a SQL Server, you can use:
IF (EXISTS (SELECT name
FROM master.dbo.databases
WHERE 'myDB' = @dbname
OR name = @dbname)))
But in AWS RDS, I get this error:
Invalid object name 'master.dbo.databases'
Is there another place to look up the databases in AWS RDS? By default there is always rdsadmin
and then anything else the user adds.