Azure database
- 创建数据库用户
1 CREATE LOGIN LoginName 2 WITH PASSWORD = '123456' 3 GO 4 5 -- For login <login_name, sysname, login_name>, create a user in the database 6 CREATE USER LoginName 7 FOR LOGIN LoginName 8 WITH DEFAULT_SCHEMA = dbo 9 GO 10 11 -- Add user to the database owner role 12 EXEC sp_addrolemember N'db_owner', N'LoginName' 13 GO