title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sp_MShasdbaccess (Transact-SQL) |
sp_MShasdbaccess lists the name and owner of all the databases to which the user has access. |
markingmyname |
maghan |
randolphwest |
08/21/2024 |
sql |
system-objects |
reference |
|
|
|
[!INCLUDE SQL Server]
Lists the name and owner of all the databases to which the user has access.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_MShasdbaccess
[ ; ]
None.
0
(success) or 1
(failure).
Execute permission is granted to the public role.