title: Insert from java into SQL Server appends 'null'
body: <p>I'm trying to insert values into a SQL database from within Java. This works fine, except for some of the values. Eg, when I insert "foo" it appends null at the start so it becomes "nullfoo". If I insert the same statement in SQL Server Management Studio this doesn't happen.</p>
  
  <p>To be sure: I print the string before inserting it and it reads "foo". </p>
  
  <p>My insert code:</p>
  
  <pre><code>statement.execute("INSERT INTO " + settings.getProperty("table") + " VALUES ('" + value1+ "', '" + value2 + "', '" + value3 + "')");
  </code></pre>