Syntax error in CHECK CONSTRAINT clause. (Error 3765)

This error occurs when using SQL DLL to define a CHECK constraint. It occurs when the search condition (SELECT statement) in the CHECK clause references an invalid table or column name.