I was able to fix the problem by copying the nessary odbc libs into /usr/lib - mono (on solaris) wasn't seeing them in /usr/local/lib - even though I had that dir in my LD_LIBRARY_PATH

On 1/25/06, Daniel Morgan <[EMAIL PROTECTED]> wrote:
What is the shared library name of ODBC software?
 
On Windows, it is odbc32.dll
On Linux or Unix, it depends on what you have?  iodbc?  unixodbc? something else?
 
On Linux, unixodbc would have a shared library of libodbc.so and iodbc would have a shared library of libiodbc.so.  However, I am just thinking off the top of my head.
 
You may need to modify the file called config in your etc/mono of your mono installation.  You should see dllmap for odbc32.dll.  You might need to modify the target to be whatever the name of your shared library name for ODBC is.
 
You can look here for more info:
Hi

I am having problems connection to my database ( sybase ) via odbc.

Unhandled Exception: System.DllNotFoundException: odbc32.dll
in (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle (System.Data.Odbc.OdbcHandleType,intptr,intptr&)
in <0x00078> System.Data.Odbc.OdbcConnection:Open ()



isql for odbc does work:
([EMAIL PROTECTED]) ~> /usr/local/bin/isql -v JWMP_DEV mvandenb PASSWORD
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> quit

_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list


Yahoo! Mail
Use Photomail to share photos without annoying attachments.


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to