Hello everyone,

I'm having an issue with the odbcreader accessing the
db2 field. I'm currently using VS 2003 + .net 1.1
framework.

When I debug my module I can retrieve the contents
of the db2 field. This is what my code looks like:

try
{
  this.qdPrintedBy = (string) (AreaderTIM_ENROLLEE_EXT["PRINTED_BY"] +
"").Trim();
}
catch (InvalidOperationException ioe)
{
  Console.Out.WriteLine("Exception is: {0}", ioe.Message);
}
catch (Exception ex)
{
  Console.Out.WriteLine("Exception is: {0}", ex.Message);
}

This code is within a method name and it goes like this:

public void fillStruct(ref OdbcDataReader AreaderTIM_ENROLLEE_EXT,
   ref OdbcDataReader AreaderENROLLEE_TA, ref OdbcDataReader
AreaderVIEW_DAILY_PROD)


"PRINTED_BY" is a varchar type in db2. I can retrieve the values
when debugging but when I run its "Release" version (the EXE),
I'm getting an exception and I can't figure out why the reader
can't seem to read the field. Has anyone encountered this same problem
before?
Thanks for the help in advance.









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to