1. 程式人生 > 資料庫 >同步資料庫報錯

同步資料庫報錯

從UAT或者Live環境還原回來的資料庫,由於版本跟本地開發環境可能不一樣,同步資料庫的時候會報錯。

 在事件檢視器裡能看到具體的資訊。

Object Server Database Synchronizer:
The internal time zone version number stored in the database is higher than the version supported by the kernel (18/16). Use a newer Microsoft Dynamics 365 for Finance and Operations kernel.
這是以為在資料庫表SQLSYSTEMVARIABLES存了版本的資訊,同步的時候會檢查這個資訊,在資料庫裡找到資訊update一下就可以了。

UPDATE SQLSYSTEMVARIABLES
SET VALUE = 16
WHERE PARM = 'SYSTIMEZONESVERSION'