About 3,740,000 results
Open links in new tab
  1. Create a database user - SQL Server | Microsoft Learn

    Nov 22, 2024 · Learn how to create the most common types of database users by using SQL Server Management Studio or Transact-SQL.

  2. How to Create Login, User and Grant Permissions in SQL Server

    Aug 7, 2024 · Assigns a predefined role (e.g., db_owner) to a user within a database. T-SQL: USE [YourDatabaseName]; ALTER ROLE [db_owner] ADD MEMBER [NewUserName]; Create a User in dbForge Studio for SQL Server. Description: Adds a new user through the dbForge Studio interface. Steps: Open dbForge Studio and connect to SQL Server.

  3. GRANT Database Permissions (Transact-SQL) - SQL Server

    Grants permissions on a database in SQL Server. Transact-SQL syntax conventions. TO <database_principal> [ ,...n ] [ WITH GRANT OPTION ] [ AS <database_principal> ] <permission>::= . <database_principal> ::= Database_user . | Database_role . | Application_role . | Database_user_mapped_to_Windows_User.

  4. Assign Permissions to User in SQL Server - TutorialsTeacher.com

    Here, you will learn to grant permissions to a user in SQL Server. You can GRANT and REVOKE permissions on various database objects in SQL Server. User permissions are at the database level.

  5. SQL Server Database Security – Logins and Users

    Nov 10, 2022 · To access SQL Server, you need to create a login, and to give access to a database, you need to create a user. In this tutorial, we look at how to create a SQL Server login along with an associated database user using SSMS and T-SQL code.

  6. How do I grant read access for a user to a database in SQL Server?

    Jun 8, 2012 · It works but it creates a new login and user rather than using the one that is available in the domain: CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS; USE (your database) CREATE USER (username) FOR LOGIN (your login name)

  7. Create a New User and Grant Permissions in SQL Server

    In this article, let us take a step-by-step approach to create a new database User and grant permissions to the User. In SQL Server, a Login is created for the server instance whereas a User is created for a database.

  8. Get Started with Database Engine Permissions - SQL Server

    Mar 3, 2025 · In SQL Server, you can create your own server roles and assign server-level permissions to them. Logins can be added to the server roles using the ALTER SERVER ROLE ... ADD MEMBER statement. For more information, see ALTER SERVER ROLE. SQL Database doesn't support the user-defined server roles.

  9. sql server - T-SQL How to grant role to user - Stack Overflow

    Jun 13, 2012 · In my case, I needed to add the user to the public role for a specific database. This is done as so: After creating roles and granting privileges to them, I want to grant the privileges of a specified role to a user, how to do with it? I tried grant to , but failed.

  10. SQL Server giving logins(users) db_owner access to database

    Dec 17, 2017 · We have a test database and some test logins that we would like to give db_owner access to through a script. Usually we would have to go into logins and right click on the username and go to user mapping and select the database to associate it with and give it owner access and click OK.

  11. Some results have been removed