On Wed, 2010-01-20 at 12:00 +0100, [email protected] wrote:
> I have problems with connecting to a remote db2 database with mono. I
> am using DB2 v.9.5 and mono developer 2.2. The db2 .net data provider
> and the client are allready installed. I also added "<dllmap dll="db2"
> target="libdb2.so" os="!windows"/>" to /etc/mono/config and  the
> system (Suse 11.2) allready knows the lib path of the db2 client. 

Can you connect to the DB2 instance using other DB2 utilities?  Is the
DB2 .NET provider 100% managed core [or is it like the @&%^&@ Informix
".NET provider" just a wrapper around Win32 DLLs].

> When I run this code, I get the following exception: 
> IBM.Data.DB2.DB2Exception: No error information 
>   at IBM.Data.DB2.DB2ClientUtils.DB2CheckReturn (Int16 sqlRet, Int16
> handleType, IntPtr handle, System.String message,

Makes me wonder if you are missing an environment variable that allows
the driver to find its error messages glossary.

-- 
OpenGroupware developer: [email protected]
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to