Paul Clement
6/17/2004 7:27:00 PM
On Wed, 16 Jun 2004 12:56:45 -0700, "Mike" <M.Treadway@AustinLaneTech.com> wrote:
¤
¤ >-----Original Message-----
¤ >On Wed, 16 Jun 2004 07:02:09 -0700,
¤ <M.Treadway@AustinLaneTech.com> wrote:
¤ >
¤ >¤ Hey, I'm moving a VB application to C# and the VB
¤ program
¤ >¤ accessed a datasource through ADO using the OLE DB
¤ >¤ provider for ODBC drivers. I'm able to access the
¤ >¤ datasource through the .NET IDE because it is also
¤ using
¤ >¤ OLE DB, but .NET forces me to use the ODBC driver
¤ directly
¤ >¤ with the OdbcConnection object and it just won't work.
¤ >¤
¤ >¤ I've tried every possible connection string I can think
¤ of
¤ >¤ from reading other posts and each one them produces the
¤ >¤ same exception when opening the connection:
¤ >¤
¤ >¤ "[Microsoft][ODBC Driver Manager] The driver doesn't
¤ >¤ support the version of ODBC behavior that the
¤ application
¤ >¤ requested (see SQLSetEnvAttr)."
¤ >¤
¤ >¤ I used the ODBC Test application to connect and it
¤ reports
¤ >¤ the same message but follows it with a successfully
¤ >¤ connected statement.
¤ >¤
¤ >¤ The ODBC Test program doesn't report the error when I
¤ use
¤ >¤ ODBC 2.0
¤ >¤
¤ >¤ Is there anything I can do about this?
¤ >
¤ >What is the database you are working with and are you
¤ using a DSN?
¤ >
¤ >
¤ >Paul ~~~ pclement@ameritech.net
¤ >Microsoft MVP (Visual Basic)
¤ >.
¤ >
¤
¤ Well, I believe the database is some form of a pervasive
¤ database, the vendor has provided a driver which has
¤ worked just fine the past few years.
¤
¤ I was originally using a System DSN in VB6 but I've tried
¤ both a DSN and DSNless connection with .NET, I've also
¤ verified that the DSN is a System DSN and that there isn't
¤ a User DSN with the same name.
So this an ODBC driver? What is connection string that works with your VB application?
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)