In Master DB create New Query
In your taget DB create New Query
CREATE LOGIN [userName] WITH PASSWORD=N'password'
CREATE user [userName] FOR LOGIN [userName] WITH DEFAULT_SCHEMA=[dbo]
ALTER ROLE dbmanager ADD MEMBER [userName]
In your taget DB create New Query
CREATE user [userName] FOR LOGIN [userName] WITH DEFAULT_SCHEMA=[DBName]
EXEC sp_addrolemember N'db_owner', N'userName'
留言