Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.12 KB

sp-mshasdbaccess-transact-sql.md

File metadata and controls

48 lines (35 loc) · 1.12 KB
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
sp_MShasdbaccess
sp_MShasdbaccess_TSQL
sp_MShasdbaccess
TSQL

sp_MShasdbaccess (Transact-SQL)

[!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

Syntax

sp_MShasdbaccess
[ ; ]

Arguments

None.

Return code values

0 (success) or 1 (failure).

Permissions

Execute permission is granted to the public role.

Related content