# Insights database verification script

> Run the Insights database verification script to detect missing tables, version mismatches, and other common database configuration issues.

This script helps detecting several common issues with users' Insights DB observed during product preview as follows:

1. Insights wasn't updated to version 2023.4 or later.
2. One or more required tables are missing: `dbo.Tenants`, `dbo.Jobs`, `dbo.JobEvents`, `dbo.QueueItems`, `dbo.QueueItemEvents`, `dbo.RobotLogs`, and `dbo.__MigrationHistory`.
3. Negative IDs are present in one of the tables.

Any errors detected by this script should be fixed before moving forward with the cloud migration.

You can download the script from our [page](https://github.com/UiPath/Insights-Customer/blob/master/Scripts/SQLServer/DbVerificationScripts/verify_InsightsDb.sql).
