[Mono-list] ODBC Problems

Daniel Morgan monodanmorg at yahoo.com
Wed Jan 25 13:56:15 EST 2006


  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:
  http://www.mono-project.com/ODBC

Melissa Vandenbrink <melissa.vandenbrink at gmail.com> wrote:
  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:
(mvandenb at rs24) ~> /usr/local/bin/isql -v JWMP_DEV mvandenb PASSWORD
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> quit

_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



				
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060125/4de1a529/attachment.html


More information about the Mono-list mailing list