Error code

SQL Server 207

SQL SERVER207
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

invalid column name — the column does not exist on the referenced table.

How to fix it

  1. Verify the column name with sp_help '<table>' or by examining the table definition in SSMS.
  2. Run any pending migrations that add the column.
  3. Check that the correct table alias is being used for the referenced column.

Not affiliated with SQL Server. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.