What is "DacInstance with the specified instance_id does not exist. (Microsoft SQL Server, 36004)"?
Asked Answered
L

3

7

I'm trying to upgrade a remote SQL Server 2012 database using a dacpac, but I'm getting the following message: DacInstance with the specified instance_id does not exist. (Microsoft SQL Server, 36004). I tried to search on the internet but couldn't find anything. Any ideas?

enter image description here

Lawrencelawrencium answered 5/10, 2013 at 21:18 Comment(0)
P
9

I just encountered this problem myself. I hunted through the User Mapping for my login, adding db_owner, db_securityadmin role memberships for all relevant databases. No help.

Specifically, it was necessary to add the "sysadmin" server role to the user. After doing this, my dacpacs were able to deploy successfully.

Photography answered 18/11, 2014 at 19:34 Comment(0)
L
0

I found that this is an permission issue. The user has to have administrative privileges to update the database using a dacpac.

Lawrencelawrencium answered 7/10, 2013 at 10:26 Comment(1)
Where did you find this and what exactly are administrative previledges? And do not hesitate to go ahead if your own answer answers your qurstion and mark it as correct answer.Cockerham
G
0

The exactly required permissions are descripted here: https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/upgrade-a-data-tier-application?view=sql-server-ver15#Permissions

A DAC can only be upgraded by members of the sysadmin or serveradmin fixed server roles, or by logins that are in the dbcreator fixed server role and have ALTER ANY LOGIN permissions. The login must be the owner of the existing database. The built-in SQL Server system administrator account named sa can also upgrade a DAC.

(found in question https://mcmap.net/q/1561236/-permission-required-for-deploy-a-dacpac)

Gnarly answered 4/5, 2020 at 15:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.