VSTS Build extension - Build a SQL Source Control Project Target CI DB Permissions
vfrank66
Posts: 9 New member
I was reading this documentation and trying to figure out the least privileges I can grant the account which runs a VSTS build task "Build a SQL Source Control project". I would like to not use LocalDB and instead provided a temporary server type of "SQL Server". This will only work when the account is in the server role sysadmin. When provided db_owner to the specific database these privileges are insufficient and the error is a failed login. Probably something about cleaning the shadow database and user perm are removed.
I would like to know the least privilegse needed to run "Build a SQL Source Control" project againt a Temporary server type of "SQL Server"
I would like to know the least privilegse needed to run "Build a SQL Source Control" project againt a Temporary server type of "SQL Server"
Comments
Note that builds are not usually to a specific name, unless you are sure there aren't collisions with other developers. Since we may want concurrent builds from checkins at similar times, the build task will generate a random name.