title: ERROR:Make sure that it does not include invalid characters or punctuation and that it is not too long
body: <p>I try to get excel sheet names, with oledb.</p>
  
  <p><strong>My connection string is:</strong></p>
  
  <pre><code>string ConnString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path + ";Extended Properties=Excel 12.0;";
  </code></pre>
  
  <p>where filepath is a filename.</p>
  
  <p><strong>My code for this:</strong></p>
  
  <pre><code> OleDbCommand cmd = new OleDbCommand(@"SELECT * FROM [Employee$]", conn);
                  OleDbDataAdapter adapter = new OleDbDataAdapter(cmd);
                  adapter.Fill(Data);
  </code></pre>
  
  <p><strong>Get an Error in this line</strong>  </p>
  
  <blockquote>
    <p>adapter.Fill(Data);</p>
  </blockquote>
  
  <p><strong>Error is</strong></p>
  
  <blockquote>
    <p>'System.Data.OleDb.OleDbException' occurred in System.Data.dll<br>
    Additional information: 'Employee$' is not a valid name.  Make sure
    that it does not include invalid characters or punctuation and that it
    is not too long.</p>
  </blockquote>
  
  <p>How can this be Done?</p>