Validate and smoke tests¶
Goal: confirm a healthy baseline after installation.
SQL checks¶
Database exists; key tables present (e.g., MFProcessBatch, MFContextMenu)
Run these checks. The expected result of each is shown in the comments.
EXEC dbo.spMFVaultConnectionTest; -- "Successfully connected to vault" and "Validated License" EXEC dbo.spMFConnectionTest; -- completes with no errors EXEC dbo.spMFUpdateAssemblies; -- returns 0: the CLR assemblies are reloaded SELECT TOP 1 * FROM dbo.MFVaultSettings; -- one row: vault user, address, protocol, port
Until a license is applied, spMFVaultConnectionTest reports the license status instead of “Validated License”. See spMFConnectionTest and spMFUpdateAssemblies.
SQL Server Agent jobs and alert¶
The installer creates these for each MFSQL Connector database, named after the database. On SQL
Server Express, which has no SQL Server Agent, none of them is created; run
spMFUpdateAssemblies by hand after every M-Files upgrade instead.
Name |
What it does |
Created as |
|---|---|---|
|
Step “Delete older than 90 days”: runs spMFDeleteHistory for records older than three months. |
Job enabled. Schedule “Monthly schedule” (first Sunday of the month, 22:00) disabled. |
|
Daily check of assembly health; reloads the assemblies if they are missing, through spMFCheckAndUpdateAssemblyVersion. |
Job disabled. Schedule “MFSQL MFVersion Daily schedule” (daily, 06:30) disabled. |
|
WMI alert: fires when the M-Files version in the registry changes, and runs the next job. |
Alert enabled. |
|
Run by the alert: checks the M-Files version and reloads the assemblies. |
Job enabled, no schedule. |
To purge old log records every month, enable the schedule of the history job. To keep a daily check as a fallback to the alert, enable the validation job and its schedule.
M‑Files checks¶
VAF application appears in M‑Files Admin; dashboard loads
License status visible (until license added it will show unlicensed)
See also¶
Example scripts: Example scripts to get started
Troubleshooting: Common installation errors and resolutions