title: NLog Writing a GUID to database
body: <p>I am having trouble inserting a guid Id each time a log is written in the database. It throws these errors:</p>
  
  <pre><code>Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
  Exception thrown: 'System.Data.SqlClient.SqlException' in NLog.dll
  </code></pre>
  
  <p>What I have so far:</p>
  
  <pre><code>    @"INSERT INTO [dbo].[Nlogs] 
              (Id,Message) 
              values
              (@Id,@Message)";
  
      databaseTarget.Parameters.Add(new DatabaseParameterInfo("@Id", Guid.NewGuid().ToString()));
      databaseTarget.Parameters.Add(new DatabaseParameterInfo("@Message", "${message}"));
  </code></pre>
  
  <p>Thanks.</p>