title: Conversion failed when converting the nvarchar value to data type int sql server
body: <p>I have a table. There is data in this table and there is a checkbox next to each data. Multiple selection is possible. After the user makes a selection, the id numbers of the selected columns are come in the array. I convert the array to string and send it to the stored procedure and I run the following stored procedure:</p>
  <p>Example value for @ResultsIds: 65, 66, 67, 68, 125</p>
  <pre><code>@ResultsIds nvarchar(250)
  
  UPDATE MyTable SET [IsVerified] = 1 WHERE Id IN (@ResultsIds)
  </code></pre>
  <p>And I got this error:</p>
  <p>Conversion failed when converting the nvarchar value '65, 66, 67, 68, 125' to data type int. Because [Id] column is int data type.</p>
  <p>I tried CAST and CONVERT functions of SQL but it didn't work.</p>