| title | sp_MShasdbaccess (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/14/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine | ||
| ms.reviewer | |||
| ms.technology | system-objects | ||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | a9a23b90-2c60-4460-80a7-d7e14cc5a6a8 | ||
| author | stevestein | ||
| ms.author | sstein |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
Lists the name and owner of all the databases to which the user has access.
Transact-SQL Syntax Conventions
sp_MShasdbaccess
0 (success) or 1 (failure)
Execute permission is granted to the public role.