.NETGURU
ODBC DataReader - dBase IV
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.odbcnet.

Post a new message to this list...

Kevin Ghantous
Hey,

I've been working for the last few days on changing over a system from SQL Server to dBase IV (don't ask :0) ).

Everything seems to be going well, except whenever I use the ODBCDataReader, specifically use the ODBCDataReader.Item(<fieldName>) overload, I get an OutOfRangeException. I tried using the .Item(int) overload, and I get the fields, but of course, they are in the order they exist in the database. I know the columns exist, and I am spelling the name correctly.

I attempted the same code, but I used a DataAdapter w/ a DataTable. Everything worked fine. So, if anyone has any ideas why I am getting this error, I would greatly appreciate it.

Thanks,
-Kevin
Reply to this message...
 
    
Kevin Ghantous
Problem Resolved --

I was disposing of the command Object prior to the using the Reader -- and by doing this it was breaking the reader.

Strange, but it also makes some sense.

thanks,
-Kevin
Reply to this message...
 
 
System.Data.Common.DataAdapter
System.Data.DataTable




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification