About 58,800 results
Open links in new tab
  1. SQL Server query to find all permissions/access for all users in a database

    Jun 1, 2022 · I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored …

  2. List All Database Users With Permissions - SQLGeeksPro

    In this blog post, we will explore a SQL query that allows you to list all database users with Permissions in SQL Server. As a DBA you must be able to identify which users have access to …

  3. SQL Server check user permissions on database

    Nov 13, 2023 · In SQL Server, you may need to check if a user has access to a database or not. In that case, you can use the HAS_DBACCESS function. For example, If I want to check the …

  4. How to find my permissions in a SQL Server database?

    Mar 20, 2018 · Two things to try if you're having issues with it. Make sure you are scoped to a database and not "master". Also, check you are using the correct name by first running …

  5. SQL Server Query to Find All Permissions/Access for All Users in a Database

    Aug 29, 2024 · In this article, we will learn various methods to find all permissions/access for all users in a database in detail. How to Find All Permissions/Access for All Users in a Database. …

  6. Listing users and their roles in SQL Server - Stack Overflow

    Aug 31, 2010 · I want to get a list of all the users in the SQL server database and their roles. What I'm trying to do is to find out if certain users have privileges to more than one database. Is …

  7. SQL Server Login and User Permissions with fn_my_permissions

    Apr 13, 2021 · In this article, I will explain how to check permissions for a user or login using fn_my_permissions. The permissions of a principal to a securable in a database consists of …

  8. sql server 2008 - How to find which tables and views a user has access ...

    Sep 2, 2015 · USE Your_Database; GO EXECUTE AS USER = N'the_user_name'; GO SELECT s.name, o.name, p.[permission_name] FROM sys.objects AS o INNER JOIN sys.schemas AS …

  9. Finding all users with access to a table in SQL server

    Apr 20, 2019 · Examples could include USER_TABLE, SQL_SCALAR_FUNCTION, SQL_INLINE_TABLE_VALUED_FUNCTION, SQL_STORED_PROCEDURE, VIEW, etc. This …

  10. List SQL Server Permissions for Read and Write Access All …

    Aug 22, 2019 · For compliance auditing, a customer asked for a list of users who have read or write access in any database on the SQL Server instance. Although there are several tables …

Refresh