Table of contents
1Business Central
Open the BC2SQL Setup page in Business Central and click Set On Hold to set the status to “On Hold”.
2Update BC2SQL app through “Admin Center”
In the Dynamics 365 Business Central admin center, open the environment and click Apps.
In the BC2SQL row, click Install update.
Confirm the update with Yes.
3Azure – Update Webjob
Download the latest BC2SQL.zip here: BC2SQL.zip
Log into https://portal.azure.com and open the BC2SQL Web App.
Select Webjobs, stop the existing BC2SQL Webjob and delete it.
Click Add and upload the new BC2SQL.zip as a Continuous Webjob.
appsettings.json – it is configured through Environment variables on the App Service (TargetSQLSystem, EnvironmentCode and the connection string). These settings, together with 64 Bit and Always on, belong to the App Service and are kept when the Webjob is replaced – they do not need to be set up again.Confirm that the new Webjob is running without errors.
4On-Premises – Update Windows Service
Download the latest BC2SQL.zip here: BC2SQL.zip
https://dotnet.microsoft.com/en-us/download/dotnet/10.0
Open an elevated (Run as administrator) Command Prompt or PowerShell and stop the service:
sc.exe stop BC2SQL- Take a copy of the existing
appsettings.jsonin the service folder, for exampleC:\BC2SQL. - Extract the new
BC2SQL.zipinto the service folder and overwrite the existing files. - Put the saved
appsettings.jsonback, so the connection string and EnvironmentCode are kept.
appsettings.json with the one from the zip file – it contains your connection string.Start the service again:
sc.exe start BC2SQL5Verify the upgrade
- Set the BC2SQL Setup status back from “On Hold” to “Ready”.
- Confirm data starts synchronizing to the SQL database.
- Check the BC2SQL logs for errors.
To check right away, query the log in the SQL database. There should be no entries of type Error – only Info:
SELECT *
FROM [BC2SQL].[Log]
ORDER BY Id DESC