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

    Sep 18, 2013 · SELECT name FROM sys.database_principals WHERE type_desc = 'SQL_USER' AND default_schema_name = 'dbo' This selects all the users in the SQL server that the …

  2. How can I get the current user in Microsoft SQL Server?

    May 6, 2019 · You need SUSER_NAME (), which gives you the login identification of the current user. You would get that information as follows: TT. You can use SUSER_NAME() instead of …

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

    Aug 18, 2021 · In this SQL Server tutorial, we will learn How to get list of users, How to get a list of objects available in SQL Server. We will also demonstrate these topics with the help of …

  4. How to find out user name and machine name to access to SQL server

    Apr 10, 2015 · SELECT SUSER_SNAME(), HOST_NAME() only list one user on SQL server. For example, I log in in as my name to SQL server. The result of this query only lists my name and …

  5. List Users in SQL Server With Top Methods

    Jan 22, 2025 · There are different methods that can help to find the list of users in the SQL Server Database. Each method has its own functionality and a way of resolving the issue and …

  6. List users in SQL Server database

    Query below returns list of users in current database. create_date, modify_date, type_desc as type, authentication_type_desc as authentication_type. from sys.database_principals. where …

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

    To retrieve all Users in SQL Server, you can execute the following SQL statement: SELECT * FROM master.sys.database_principals; The sys.database_principals view contains the …

  8. Listing the existing SQL Server Logins and Users

    Try this one - this will list users, objects and the permissions that they have on those objects: SELECT p.name, o.name, d.* FROM sys.database_principals AS p JOIN …

  9. SQL SERVER – List Users with System Admin (sysadmin) Rights

    Dec 18, 2017 · Here is the quick script which you can run and list all the users with admin rights. If you find your username there, you know you are an admin. Let me know if you use any other …

  10. Identify Local Administrators on a SQL Server box using …

    Jun 15, 2011 · If you’re looking for an interactive solution using PowerShell to determine membership of a local group on a server, then PowerShell.com has an excellent script that …

  11. Some results have been removed
Refresh