database restore from LCS to local on D365FO after 10.0.39
Error message : Receive the following error while importing a bacpac to a Dev environment
Error SQL72014: Framework 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_db_configreader];
Steps to resolve the issue:
Step 1: Rename the BACPAC file to .zip,Go to the folder where you have saved your BACPAC file and rename the BACPAC file with a .zip extension, Press "Yes" to convert the .bacpac file to zip file.
Step 2 : Open zip file ,
Step 3: Copy the model.xml file into the different locationStep 4: Open it in VS Code editor.
Step 5. Delete the entire Element tag which contains " Grant.KillDatabaseConnection "
Step 6. After deletion of the element type mentioned in Step 5. it look like below.
Step 8: Download the latest SqlPackage file from the below link:https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver16
Step 7: Rename the the file modelCopy.xml and paste it in the SqlPackage folder.
Step 8: Rename the zipfile to bacpac file (reverting back the changes from step 1)
Step 8: Login to command prompt as administrator.Step 9: Navigate to the downloaded SQLPackage folder and run the below command.
SqlPackage.exe /a:import /sf:"J:\MSSQL_BACKUP\AxDB.bacpac" /tsn:localhost /tdn:AXDB_New /p:CommandTimeout=1200 /TargetTrustServerCertificate:True /mfp:"ModelCopy.xml"
This will resolve your issue of Importing the Bacpac file into D365 F&O Tier 1 environments
posted on 2024-05-21 14:41 lingdanglfw 阅读(30) 评论(0) 编辑 收藏 举报
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?