If I run this query select db_name() select name from master..sysdatabases where has_dbaccess(name)=1 I get this below error...but this occurs...
Separate names with a comma.