sp_MShasdbaccess (Transact-SQL)
SQL Server 2005
Lists the name and owner of all the databases to which the user has access.
Transact-SQL Syntax Conventions
Lists the name and owner of all the databases to which the user has access.
Transact-SQL Syntax Conventions