I am receiving the following error when attempting to upgrade the SDE from 10.4.1 to 10.5.1
Could not update server tables and stored procedures. ( Error (-9)
DBMS error code: 0
42000:[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Cannot execute as the database principal because the principal "public" does not exist, this type of principal cannot be impersonated, or you do not have permission.
SDE user is db_owner and there is a public role which he is apart of