[Mono-list] DB" connection problem

Adam Tauno Williams awilliam at whitemice.org
Wed Jan 20 06:29:22 EST 2010


On Wed, 2010-01-20 at 12:00 +0100, Niklas.Albers at main-it.de 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: awilliam at whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20100120/b749ee48/attachment.bin 


More information about the Mono-list mailing list