-
Notifications
You must be signed in to change notification settings - Fork 112
Added KillDatabaseConnection search string to RepairBacpac.Simple.json #891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added the "KillDatabaseConnection" search string to RepairBacpac.Simple.json, to fix the issue "KILL DATABASE CONNECTION' is not supported in this version of SQL Server" See for reference: https://www.linkedin.com/pulse/how-fix-bacpac-import-error-kill-database-connection-supported-ahmed-0zxle/
|
Thanks for the contribution! Could you share what the full Also, did you try the latest SqlPackage version for the import? Some people report that the issue is resolved by that. You can use Invoke-D365InstallSqlPackage -Latest to update it. In general, we want to avoid having to change d365fo.tools for every change in the bacpac model.xml files that break the bacpac import. That is why In this case, I've seen the @Splaxi fyi |
|
Hi Florian, this is the full element which caused the issue. <Element Type="SqlPermissionStatement" Name="[Grant.KillDatabaseConnection.Database].[ms_uno_dev_writer].dbo]">
<Property Name="Permission" Value="1114" />
<Relationship Name="Grantee">
<Entry>
<References Name="[ms_uno_dev_writer]" />
</Entry>
</Relationship>
<Relationship Name="SecuredObject">
<Entry>
<References Disambiguator="1" />
</Entry>
</Relationship>
</Element>Thanks for the hint with the latest SqlPackage. This solved the issue, and I was able to import the backup without modifing the model.xml |
|
Knowing that "KillDatabaseConnection" has been an issue multiple times - I'm in favor of taking it into the module, on the next release. |
|
Also got the issue today. I think the best way forward is to have Invoke-D365InstallSqlPackage by default install the latest version of SqlPackage, i.e. make the behavior of the I think the times when bacpac conversion required a specific older version of SqlPackage are far enough in the past. The last issues in that area were more often caused by an outdated version of SqlPackage. |
|
I'm in favor of making things as seamless and struggle free as possible. How do we plan around the non-breaking changes, and honor that we want the latest to be default? Update the cmdlet to handle Latest:$true ? |
|
My plan was replace the link in the following line with https://aka.ms/sqlpackage-windows
I would leave the d365fo.tools/d365fo.tools/functions/invoke-d365installsqlpackage.ps1 Lines 74 to 76 in 0ea5a15
|
Added the "KillDatabaseConnection" search string to RepairBacpac.Simple.json, to fix the issue "KILL DATABASE CONNECTION' is not supported in this version of SQL Server"
See for reference:
https://www.linkedin.com/pulse/how-fix-bacpac-import-error-kill-database-connection-supported-ahmed-0zxle/