About 1,270,000 results
Open links in new tab
  1. sql server - Can I connect to the database as the user "dbo ...

    Sep 5, 2019 · While you cannot login to a server as "dbo", you can login with a login that is mapped to the dbo user in one or more databases. When the database context of the connection is a database where that login is mapped to dbo, then the identity in that context is as "dbo".

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

    Dec 17, 2017 · You need to do two things, both running in the context of the target database (i.e., execute USE (database) first): Add that user as a login to the database: CREATE USER [LoginName] FOR LOGIN [LoginName] Add that user to the role: EXEC sp_addrolemember N'db_owner', N'LoginName'

  3. SQL Connection String Using a Domain User? - Stack Overflow

    May 28, 2021 · What would the connection string be for using a domain account? I tried: name="name" connectionString="Data Source=server;Initial Catalog=database;Persist Security Info=True;User ID=domain\user;Password=password" providerName="System.Data.SqlClient" and it does not work. Is there a different way to connect to SQL Server using a domain account?

  4. sql server - GRANT syntax for domain\user - Stack Overflow

    I'm trying to give access to an active directory user to only one specific table. I want them to be able to insert, update, delete, etc. but only for that table. I know this command: GRANT Insert,

  5. sql server - How to change the login for a database's dbo user ...

    Aug 7, 2015 · The group or login that is member of the sysadmin role is indepentent of who owns the database. The login that is mapped to the dbo of the database is basically the owner. You can change this via SSMS or with the query below: ALTER AUTHORIZATION ON DATABASE::[ReportServer] TO [sa]; ALTER AUTHORIZATION ON DATABASE::[ReportServerTempDB] TO [sa];

  6. SQL-Server - Grant user DBO permission on database

    How do I add the user 'chris' to the database to be able to run the sp_addrolemember to make him a DBO of that database? Is there a way to add the user permissions using sp_addrolemember command from the master db where the user exists?

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

  8. dbo - Database Owner - SQL Server Science

    May 18, 2019 · In SQL Server, the dbo or Database Owner is a server-level principal that has full access to the owned database. Microsoft’s best practices recommend creating a discrete user, either an Active Directory domain user or group, or a SQL Server Authentication user, to use as the database owner.

  9. Principals (Database Engine) - SQL Server | Microsoft Learn

    Nov 22, 2024 · The dbo user is a special user principal in each database. All SQL Server administrators, members of the sysadmin fixed server role, sa login, and owners of the database, enter databases as the dbo user.

  10. Lesson 1: Connecting to the Database Engine - SQL Server

    Sep 16, 2024 · It's easy to connect to the Database Engine from tools that are running on the same computer if you know the name of the instance and if you're connecting as a member of the local Administrators group on the computer.

  11. Some results have been removed