Patch Tuesday reports help you track urgent security fixes. When they fail, visibility fades and risk grows. A common error stops these reports cold and leaves admins puzzled. Today’s tip explains why this happens and how you can restore clear, reliable reporting in minutes.
What is going on
Many admins see an error when running Patch Tuesday reports:
'Try_Convert' is not a recognized built-in function name.
Incorrect syntax near the keyword 'As'
The report refuses to run. The dashboard stays incomplete. Patch compliance becomes harder to track.
This error appears because the report uses TRY_CONVERT, a SQL Server function introduced in SQL Server 2012. The function only works when the Lansweeper database uses a compatibility level of 110 or higher. If the database sits at an older level, SQL treats TRY_CONVERT as an unknown command.
This mismatch often occurs after a migration, restore, or upgrade. The SQL Server instance may be modern, but the database remains locked to an outdated compatibility mode. The report then breaks when it hits TRY_CONVERT in its reboot and date‑handling logic.
How can I fix this
You can fix the issue by raising the database compatibility level. This change is safe, quick, and does not alter your data.
Check your current compatibility level
- Open SQL Server Management Studio.
- Connect to your SQL Server instance.
- Right‑click your Lansweeper database.
- Select Properties.
- Open the Options page.
- Review the Compatibility level setting.
Update the compatibility level
Set the compatibility level to match your SQL Server version. Make sure it is at least 110.
- Right‑click the Lansweeper database.
- Select Properties, then Options.
- Choose the correct Compatibility level.
- Click OK.
- Restart the Lansweeper service if needed.
You can also update it with T‑SQL:
SELECT name, compatibility_level
FROM sys.databases
WHERE name = 'lansweeperdb';
ALTER DATABASE lansweeperdb
SET COMPATIBILITY_LEVEL = 150;
Verify the fix
- Open Lansweeper.
- Go to Reports.
- Create a new report.
- Paste the Patch Tuesday report code.
- Validate it with the green checkmark.
The error should vanish.
This small adjustment restores full report functionality. Your Patch Tuesday dashboards fill with fresh, accurate data again, giving you a sharp and reliable view of your environment.