Entity framework code first migrations, sql user permissions?
问题 What is the minimal permission needed on a sql server user/login for it to be able to run entity framework code first database migrations? I naively would have thought that a user with the roles db_datareader, db_datawriter, Grant Alter on the Schema and Grant Create Table would be permissive enough. 回答1: you need following permision on the database. [db_datareader] [db_datawriter] [db_ddladmin] For full control over database use [db_owner] 回答2: Clearly it depends on what your migrations are/