|
|
|
|
|
|
How do I connect to an Excel Spreadsheet ?
Many people have difficulty connecting through ODBC to an Excel Spreadsheet. The following connection string uses OLEDB to connect to a speadsheet in the private directory of a site:
strconn = "DRIVER=Microsoft Excel Driver ({use star character}.xls);
UID=admin;
UserCommitSync=Yes;
Threads=3;
SafeTransactions=0;
ReadOnly=1;
PageTimeout=5;
MaxScanRows=8;
MaxBufferSize=2048;
FIL=excel 8.0;
DriverId=790;
DefaultDir=" + Server.MapPath("..\..\private") + ";
DBQ=" + Server.MapPath("..\..\private\test.xls") + ";"
Notes:
1. Server.MapPath is used to get the absolute path.
2. No ODBC link needs to be created. This is pure code based database connectivity.
3. You should only read from Excel Spreadsheets through this type od connection.
|
|
|
| Home|About Espinda|Hosting Plans|Tools|FAQ|Contact|Support|Terms of Service|Site Map|Order |
|
ecommerce web hosting, asp hosting, low cost hosting, asp web hosting, php hosting, cheap hosting, website hosting, php host, australia hosting, webpage hosting, affordable hosting, reseller hosting, uk hosting, unlimited hosting, asp net hosting, mysql web hosting, linux hosting, reseller web hosting, cheapest web hosting, ip host, linux host, canadian hosting, unlimited web hosting, web site host, frontpage web hosting, sql hosting, mysql hosting, unix hosting, ftp hosting, php web hosting, canada hosting, asp host, asp net web hosting, domain name web hosting, ecommerce hosting
|
|
|