title: Conversion failed when converting the varchar value ' SELECT ' to data type int
body: <p>I have this query:</p>
  
  <pre><code>DECLARE @selectsql nvarchar(4000),
  DECLARE @cnt int
  
  select @selectsql = ' SELECT ' + @cnt + '= COUNT(*) FROM Vwbckup' 
  
  print @selectsql
  print @cnt
  
  EXEC sp_executesql @selectsql
  </code></pre>
  
  <p>When I execute the query I'm getting this error:</p>
  
  <blockquote>
    <p><em>Conversion failed when converting the varchar value ' SELECT ' to data type int.</em></p>
  </blockquote>