title: How to insert log into Oracle SQL from C#?
body: <p>How to insert log into Oracle SQL?</p>
  
  <p>I tried this code but get an error</p>
  
  <blockquote>
    <p>The ConnectionString property has not been initialized</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>OleDbConnection connection = new OleDbConnection();
  
  connection.Open();
  //string sql = @"insert into IA_RptLog(jobname)values('testcronjob')";
  string sql = @"insert into insert_log (jobstatus, jobsvr, jobname, sessionid)
                 values('Start', 'SHDB10G', 'testcronjob', '12345')";
  
  OleDbCommand cmd = new OleDbCommand(sql,connection);
  connection.Close();
  </code></pre>