Skip to content

Commit 318ee71

Browse files
committed
Create-SQL-User-Login
1 parent a9d79e5 commit 318ee71

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Create-SQL-User.sql

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- Author: Harsh Arora
2+
-- This sql script is responsible for creation of sql user login with specific server roles and permissions to connect to database engine
3+
4+
USE [master]
5+
GO
6+
CREATE LOGIN [xyz] FROM WINDOWS WITH DEFAULT_DATABASE=[Your Database Name], DEFAULT_LANGUAGE=[us_english]
7+
GO
8+
USE [Your Database Name]
9+
GO
10+
CREATE USER [xyz] FOR LOGIN [xyz]
11+
GO
12+
ALTER ROLE [MIS_Users] ADD MEMBER [xyz]
13+
GO

0 commit comments

Comments
 (0)