title: Petapoco and parameters
body: <p>Is there a way to use parameters for Insert queries? I get the following error when I try.</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Set active survey
      /// &lt;/summary&gt;
      public int SetSurveyActive(int brandId, int surveyId)
      {
          Sql sql = new Sql()
              .Append("INSERT INTO CF.ActiveSurvey(BrandId, SurveyId")
              .Append("VALUES(@0,@1)",brandId,surveyId);
  
          var result = database.Execute(sql);
  
          return Convert.ToInt32(result);
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nqVAQ.png" alt="enter image description here"></p>