[Mono-list] ODBC Problems

Melissa Vandenbrink melissa.vandenbrink at gmail.com
Wed Jan 25 14:45:46 EST 2006


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 <monodanmorg at yahoo.com> 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:
> 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<http://us.rd.yahoo.com/mail_us/taglines/photomailgmail/*http://photomail.mail.yahoo.com>to share photos without annoying attachments.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060125/0c55718c/attachment.html


More information about the Mono-list mailing list