About 62,000 results
Open links in new tab
  1. sql server - How to get the list of all database users - Stack Overflow

    Sep 18, 2013 · To run a query returning users of individual databases, try this: EXEC sp_MSforeachdb 'USE ? <QUERY HERE>' This will run a query (and return a result) for each …

  2. Query to return all users permissions on SQL Server

    Aug 27, 2024 · Please how can I use TSQL to get the list of all users detailed permissions and privileges on each database. I want the query to return critieria like: Username; Database …

  3. 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 …

  4. SQL Server query to find all permissions/access for all users in a ...

    Aug 13, 2011 · 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 …

  5. 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 …

  6. How to get list of users in SQL Server - DatabaseFAQs.com

    Aug 18, 2021 · The sys.database_principals is a system catalog view available in SQL Server, and we can easily query this view to list all the users created in the database. Here is the …

  7. SQL Server: Find Users in SQL Server - TechOnTheNet

    To retrieve all Users in SQL Server using the SQL Server 2000 system tables, you can execute the following SQL statement: SELECT * FROM master.sys.sysusers; The sys.sysusers …

  8. Listing All Users in SQL Server - MSSQL Query

    Sep 24, 2022 · In SQL Server you may want to list all users in some cases. You can easily do this using the code below. SELECT name AS username, create_date, modify_date, type_desc AS …

  9. List users in SQL Server database - SQL Server Data Dictionary Queries

    Apr 1, 2019 · Query below returns list of users in current database. create_date, modify_date, type_desc as type, authentication_type_desc as authentication_type. from …

  10. sql server - How to list database users, their permissions, and …

    Mar 14, 2019 · How can I write a query that will tell me the server, the database, user's login name, what permissions they have, and what role they are assigned to.

  11. Some results have been removed
Refresh