title: Cannot executing a SQL query through ODP.NET - invalid character error
body: <p>I'm trying to execute a SQL query through ODP.NET to create a table, but I always get an ORA-00911 'invalid character' error. The Errors object in the exception always has the text "ORA-00911: invalid character\n", even if there are no linebreaks in the SQL query itself.</p>
  
  <p>The code I'm executing the SQL is this:</p>
  
  <pre><code>using (OracleConnection conn = new OracleConnection(&lt;connection string&gt;) {
  using (OracleCommand command = conn.CreateCommand()) {
      conn.Open();
      command.CommandText = queryString;
  
      command.ExecuteNonQuery();         // exception always gets thrown here
  }
  </code></pre>
  
  <p>queryString contains a single CREATE TABLE statement, which works fine when executed through SQL Developer</p>
  
  <p>EDIT: the SQL I am executing is this:</p>
  
  <pre><code>CREATE TABLE "TESTSYNC"."NEWTABLE" (
    "COL1" NUMBER(*,0) NULL,
    "COL2" NUMBER(*,0) NULL
  );
  </code></pre>
  
  <p>with linebreaks removed</p>