x86 - Connecting C# Application to MS Access 2013 DB -


i'm using vs 2012 & office 2013 64 bits, , changed target platform x86, still got weard error

the 'microsoft.ace.oledb.12.0' provider not registered on local machine".

you need download 2 components:

1) microsoft access database engine 2) office system driver: data connectivity components

after these installations application start work. furthermore, following link better use on access database:

void test() {  string connstr = "provider=microsoft.ace.oledb.12.0;data source=|datadirectory|\\database1.accdb;persist security info=false;";             oledbconnection conn = new oledbconnection(baglanticumlesi);             conn.open();             conn.close(); } 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -