Conversion failed when converting the nvarchar value 'view' to data type int.