web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Error importing D365F&O BACPAC to local SQL Server (VMware): 'KILL DATABASE CONNECTION' permission

(1) ShareShare
ReportReport
Posted on by 56
Hello,

 
I have my own test environment for Dynamics 365 Finance & Operations running on VMware with a local SQL Server instance (on-premises, not Azure).
I download the database BACPAC backup file from the Asset Library in LCS and then restore it to my local SQL Server using the CMD command:
 
SqlPackage.exe /a:import /sf:C:\Users\localadmin\Downloads\DB_Name.bacpac /tsn:localhost /tdn:Acc_Name /p:CommandTimeout=1200
 
Where:
- **DB_NAme.bacpac** = the BACPAC backup file I downloaded from the Asset Library (represents the source database).
- **Acc_Name** = the name I want for the new database on my local SQL Server after restore.
 
This process used to work fine, but recently I started getting the following error:
 
Error SQL72014: Core Microsoft SqlClient Data Provider: Msg 4630, Level 16, State 1, Line 1
The permission 'KILL DATABASE CONNECTION' is not supported in this version of SQL Server.
Alternatively, use the server level 'ALTER ANY CONNECTION' permission.
Error SQL72045: Script execution error. The executed script:
GRANT KILL DATABASE CONNECTION TO [ms_uno_dev_writer];

 
It seems that the exported BACPAC from D365 now contains this permission, which is supported in Azure SQL but not in regular SQL Server (local on-premises).
Since my test environment is self-hosted on VMware, I cannot directly run it in Azure SQL for this import process.
 
My questions:
1. Is there a way to skip or ignore this permission during SqlPackage import?
2. Can I modify the BACPAC to remove this permission without breaking the checksum?
3. Is Microsoft aware of this recent change in exported D365 BACPAC files?

 
Any official guidance or workaround would be appreciated.

 
Thank you.



Categories:
I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    Hi,
     
    Do you want to try a few remedies. 
     
    Make sure when you run the command, you provide the correct model file name for parameter /mfp
     
    2) also make sure to have latest version of  SqlPackage.exe
     
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans