Entity framework code first migrations, sql user permissions?

前端 未结 2 508
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 12:14

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 t

2条回答
  •  -上瘾入骨i
    2021-02-05 12:44

    On-Prem: SQL server with AD/sql login

    you need the following permissions on the database.

    [db_datareader]
    [db_datawriter]
    [db_ddladmin]
    

    For full control over database use

    [db_owner]
    

    Azure Could: Azure SQL with ADD (Edit)

    Please add [dbmanager] to master and user database.

提交回复
热议问题