End-User Documentation

Schema Loading Fails

Schema Loading Fails

Schema-loading failures usually come from runtime timing, unsupported configuration, or connection problems rather than the SQL text itself.

Common Causes

  • Generic dialect still selected
  • Unsupported schema provider
  • Connection string issues
  • Permissions or connectivity problems
  • Runtime already frozen

What To Check

  • Select a non-generic SQL Server profile first.
  • Make sure loading happens before any validation.
  • Confirm the connection target and credentials.

Example

QueryLens.Dialect = DialectProfile.GenericSql;
Assert.ThrowsAny<Exception>(() => QueryLens.LoadDbSchemaFrom(connectionString));

Related