Nov 22 2023 07:44 AM
I need to grant select access to an account on these:
sys.schemas
sys.foreign_keys
INFORMATION_SCHEMA.VIEWS
sp_tables
sp_statistics
1) Can this be granted only for a specific database on the Instance or is it at server level?
2) Does grant View Definition access grant access to all of the above?
Thanks!
Nov 22 2023 11:36 PM
Hi.
Cheers,
Lain
Nov 27 2023 12:36 AM
@SQLDBA201400 , by default every user can query those system views, but they return only informations for objects the user has access to.
See for example sys.schemas (Transact-SQL) - SQL Server | Microsoft Learn
=> Permissions => "Public role"