.net - C# ODBC Driver's SQLSetConnectAttr failed -


i'm trying connect access 2007 database (.accdb) .net console application. setup system dsn in odbc manager. how i'm setting connection:

conn = new odbcconnection(); conn.connectionstring = "dsn=hu-fu"; conn.open(); 

on development machine works perfectly, today tried install on client machine , i'm getting following error:

error [im006] [microsoft][odbc driver manager] driver's sqlsetconnectattr failed 

anyone has idea problem?


here odbc trace source:

upsshipmentserv 1454-6f0 enter sqldriverconnectw    hdbc                0x00424070   hwnd                0x00000000   wchar *             0x69938b34 [      -3] "******\ 0"   sword                       -3    wchar *             0x69938b34    sword                       -3    sword *             0x00000000   uword                        0 <sql_driver_noprompt>  upsshipmentserv 1454-6f0 exit  sqldriverconnectw  return code -1 (sql_error)   hdbc                0x00424070   hwnd                0x00000000   wchar *             0x69938b34 [      -3] "******\ 0"   sword                       -3    wchar *             0x69938b34    sword                       -3    sword *             0x00000000   uword                        0 <sql_driver_noprompt>  diag [im006] [microsoft][odbc driver manager] driver's sqlsetconnectattr failed (0) 

upsshipmentserv name of app. sadly not mean me...


one more addition question. checked access driver's (aceodbc.dll) version on both machines , mine newer client's. problem? there way update driver?

thanks.

okay guys, have apologize question...

i know problem. it's stupid error. in odbc manager when setup dsn did not select accdb file. program failed cause there no db file selected dsn.

so next time, if see error, make sure dsn set correctly. replies anyway.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -