Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Using OLEDB to access/process Excel data is better than to loop over .Cells(); putting a (selection of) a sheet with one SQL statement into a database table or .GetString a resultset as a HTML table without any Fors is attractive.</p> <p>The con: if your data contains garbage, the high level ADO/OLEDB facilities won't give you a chance to interfere.</p> <p>ADDED:</p> <p>While doing some experiments wrt what "all" means for an Excel sheet, I stumbled upon an interesting fact? about the "$". Perhaps I'm not the only one being not aware of this:</p> <p>This is the output from my VBScript test script:</p> <pre><code>------------------------------------------------------------------------------- SELECT * FROM [SakAct$] ------------------------------------------------------------------------------- |actor_id|first_name|last_name|last_update | | 3|ED |CHASE |2/15/2006 4:34:33 AM| | 4|JENNIFER |DAVIS |2/15/2006 4:34:33 AM| | 1|PENELOPE |GUINESS |2/15/2006 4:34:33 AM| | 2|NICK |WAHLBERG |2/15/2006 4:34:33 AM| | &lt;NULL&gt;|ED |CHASE |2/15/2006 4:34:33 AM| | 5| |DAVIS |2/15/2006 4:34:33 AM| | 6|PENELOPE | |2/15/2006 4:34:33 AM| | 7|NICK |WAHLBERG | &lt;NULL&gt; | ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- SELECT * FROM [SakAct] ------------------------------------------------------------------------------- |actor_id|first_name|last_name|last_update | | 3|ED |CHASE |2/15/2006 4:34:33 AM| | 4|JENNIFER |DAVIS |2/15/2006 4:34:33 AM| | 1|PENELOPE |GUINESS |2/15/2006 4:34:33 AM| | 2|NICK |WAHLBERG |2/15/2006 4:34:33 AM| ------------------------------------------------------------------------------- </code></pre> <p>Looks like [Sheet$] turns on an Excel Quirks mode, that will consider more rows than the stricter approach enabled by [Sheet].</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload