Performance different in ExecuteReader

Jan 21, 2010 at 10:41 PM

We are using the latest 4.1 library to communicate with our iSeries using IBM's latest .NET provider and found that for some reason, iDataReader = cmd.ExecuteReader() is almost twice as fast as calling iDataReader = db.ExecuteReader.

Any ideas on why this might be the case?


Jan 22, 2010 at 4:53 AM


I tried to compare the performance of the two as you've said. But it seems, I'm getting a different result, I'm not sure what I've missed. I followed this post . Can you post the code that you've used to compare the two ExecuteReader?

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.