I got this error when trying run my sql query...
Conversion failed when converting the varchar value \'Id\' to data type int
Try casting Id column to INT
SELECT * FROM History INNER JOIN Header ON cast(History.Id AS int) = Header.docId