title: Incorrect syntax near 'nvarchar' in update ASP.NET Gridview
body: <p>Very simple question but all the answer I read over the web doesn't apply.</p>
  
  <p>I try to do an update on a ASP.NET Gridview but when I click on update, I get this error:</p>
  
  <p>Incorrect Syntax near 'nvarchar'. The scalar variable @intID must be declare.</p>
  
  <p>Here is my datasource. I guess the problem come from here but I can't see where...</p>
  
  <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:connexionDev %&gt;"  
          DeleteCommand="DELETE FROM [tbl_Bug] WHERE intID = @intID" 
          SelectCommand="SELECT [intID],[strTitre],[strDescription],[intStatus_FK],[intType_FK],[intSeriousness_FK] FROM [tbl_Bug]"  
          UpdateCommand="UPDATE [tbl_Bug] SET [strTitre] = @strTitre ,[strDescription] = @strDescription ,[intStatus_FK] = @intStatus_FK ,[intType_FK] = @intType_FK ,[intSeriousness_FK] = @intSeriousness_FK WHERE [intID] = @intID"&gt;   
          &lt;DeleteParameters&gt;   
              &lt;asp:Parameter Name="intID" Type="Int32" /&gt;   
          &lt;/DeleteParameters&gt;   
          &lt;UpdateParameters&gt;
              &lt;asp:Parameter Name="intID" Type="Int32" /&gt;
              &lt;asp:Parameter Name="strTitre" Type="String" /&gt;   
              &lt;asp:Parameter Name="strDescription" Type="String" /&gt;
              &lt;asp:Parameter Name="intStatus_FK" Type="Int32" /&gt;   
              &lt;asp:Parameter Name="intType_FK" Type="Int32" /&gt;
              &lt;asp:Parameter Name="intSeriousness_FK" Type="Int32" /&gt;   
          &lt;/UpdateParameters&gt;     
      &lt;/asp:SqlDataSource&gt;
  </code></pre>
  
  <p>Thanks for your help in advance!</p>
  
  <p>EDIT - EDIT - EDIT</p>
  
  <p>Well, I wanted to use SQL Profiler but it seems that it's not in my version (SQL server 2008 Express) so I tried another sql profiler that is open source but I never understood how it worked and it was always crashing ...</p>
  
  <p>Is there any other way to know the query that are used so I can track my problem?</p>