Connect with 32bit DSN from 64bit .NET

Recently I ran into a trouble. I was using a specific database which supported only 32bit ODBC connections. However my machine was 64bit Win7. If I connected to my 32bit DSN from Excel, I could get the data but from Visual Studio I received error :" There is an architectural mismatch". The reason was that by default my .NET communicated with 64bit driver. To force it to use, I changed my project Platform target from "ANY CPU" to "x86".. and it worked!! :)

Comments

Popular posts from this blog

How to show only month and year fields in android Date-picker?

How to construct a B+ tree with example

Conflict Serializability in database