c# - Troubleshooting Could not find installable ISAM error -
i have 32-bit ms office 2013 installed, along 32-bit office redistributable , small c# console application set compile 32-bit.
the following code causes oledbexception stating "could not find installable isam."
public void getdata() { var filename = @"c:\temp\sales database_test.accdb"; var connection = @"provider=microsoft.ace.oledb.12.0;data soure='" + filename + "'"; using (var conn = new oledbconnection(connection)) { conn.open(); conn.close(); } } instead of randomly applying solutions dozen vague answers, i'd know:
- what means?
- what installable isam?
- how list of them?
- how know available?
- finally, how know providers available on given machine?
- is there way enumerate these things , troubleshoot?
my issue turned out aging eyes , fat fingers: "data source" misspelled "data soure".
this doesn't answer questions, may else. generated working connection string linking data in excel , copying , pasting , removing didn't need.
get data access (pick table).

next open connections.

you can @ properties of connection , copy working connection string can paste code , edit.

Comments
Post a Comment