Specification of Extended Properties in OleDb connection string?
Posted
by Monty
on Stack Overflow
See other posts from Stack Overflow
or by Monty
Published on 2010-04-29T07:16:52Z
Indexed on
2010/04/29
7:37 UTC
Read the original article
Hit count: 356
At the moment I'm searching for properties for a connection string, which can be used to connect to an Excel file in readonly mode. Searching Google gets me a lot of examples of connection strings, but I can't seem to find a specification of all possibilities in the 'Extended Properties' section of the OleDb connection string.
At the moment I've this:
Provider = Microsoft.Jet.OLEDB.4.0; Data Source = D:\Data\Customers.xls; Extended Properties = 'Excel 8.0; Mode=Read; ReadOnly=true; HDR=Yes';
However... I've composed this by examples. So questions: 1. What is a decent source for OleDb Connection String documentation/reference? 2. Is the above connection string indeed connecting to the Excel file in readonly mode?
Thanks!
© Stack Overflow or respective owner