Conversion failed when converting the nvarchar value 'null' to data type smallint.#2