TechBrothersIT is a blog and YouTube channel sharing real-world tutorials, interview questions, and examples on SQL Server (T-SQL, DBA), SSIS, SSRS, Azure Data Factory, GCP Cloud SQL, PySpark, ChatGPT, Microsoft Dynamics AX, Lifecycle Services, Windows Server, TFS, and KQL. Ideal for data engineers, DBAs, and developers seeking hands-on, step-by-step learning across Microsoft and cloud platforms.
How to Create a Database User in SQL Server - SQL Server DBA Tutorial
In this video you will learn how to create database user in SQL server using SQL Server Management studio as well as T-SQL Script. It demonstrates two ways to create database user, creating database user using Login Window as well as creating database user using security user tab in the database of SQL Server. It goes through various Server Roles such as Public as well as Database role such as db_datareader roles while creating SQL Server Database user.
Scripts used in this video USE[master] GO CREATELOGIN [TECHBROTHERS\kscott]FROMWINDOWSWITHDEFAULT_DATABASE=[master] GO USE[SalesOrders] GO CREATEUSER[TECHBROTHERS\kscott]FORLOGIN [TECHBROTHERS\kscott] GO USE[SalesOrders] GO ALTERROLE [db_datareader]ADDMEMBER [TECHBROTHERS\kscott] GO
SQL Server DBA Tutorial- How to Create Database User in SQL Server
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.