M-Files automatic upgrade¶
M-Files automatically upgrades to keep the M-Files software up to date.
MFSQL Connector must response to the upgrade of M-Files on the SQL Server. MFSQL Connector requires M-Files Desktop on the SQL Server where MFSQL Connector is deployed. When M-Files upgrades on the SQL Server it moves the location of the MFilesAPI to the new installed version. MFSQL Connector must therefore be updated to repoint the MFileAPI in the CLR Assemblies to the new location.
Methods to update MFSQL Connector¶
Automatic Update
The Connector checks to validate if M-Files has upgraded by running the procedure spMFCheckAndUpdateAssemblyVersion. This procedure can be run manually using spMFUpdateAssemblies, using a SQL agent , or using a powershell utility. Use the powershell utility for SQL Express installations.
Manual update
Set the parameter to the current version of M-Files on the SQL Server then execute.
EXEC [dbo].[spMFUpdateAssemblies] @MfilesVersion = '19.9.8028.5'
Rerun the installation package
Another way to reset the assemblies is to re-run the installation package of the MFSQL Connector.
Check the M-files version on the SQL Server
Declare @IsUpdateAssembly int, @MFilesVersion nvarchar(25)
Exec spMFGetMFilesAssemblyVersion @IsUpdateAssembly = @IsUpdateAssembly output, @MFilesVersion = @MFilesVersion output
Select @IsUpdateAssembly as IsUpdateRequired, @MFilesVersion as InstalledVersion