我在Visual Studio中有数据库项目(.sqlproj),我创建这样的用户:
CREATE USER [MyUser] WITHOUT LOGIN; --I dont want to store password in source control
GO
ALTER ROLE [db_datareader] ADD MEMBER [MyUser]
GO
ALTER ROLE [db_datawriter] ADD MEMBER [MyUser]
GO
ALTER ROLE [db_executor] ADD MEMBER [MyUser]
我在VSTS Build中构建dacpack并在VSTS版本中将其部署到Azure:
如何设置持续部署以便创建具有密码的用户?
答案 0 :(得分:1)