Problem with GetOrdinal
- From: Dandle <no@xxxxxxxx>
- Date: Fri, 2 Mar 2007 08:33:14 -0800
Hi,
I wrote a windows service in c# .net 2.0. There is a timer that fires
every second or so and when it does I start two threads (unless they are
still running from the last time).
One of the threads queries SQL server using a data reader. Every once
in a while I get a runtime related to GetOrdinal. Here is the call
stack:
at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String
fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at GTS.ComAppLibrary.LXRecord.ReadRecords(SqlDataReader _dr)
I googled for this and I did find one posting on MSDN that goes back to
Nov of 2005. A number of people have had a similar problem, but nobody
seems to have a good solution.
Unfortunately I have just used a work around of supplying integers to
the GetString (and other get methods).
Is there a fix for this problem? Has MS been able to reproduce the
problem?
Thanks
Randy
.
- Follow-Ups:
- Re: Problem with GetOrdinal
- From: Stephen Howe
- Re: Problem with GetOrdinal
- Prev by Date: Re: how to get back to menu-item in vb6
- Next by Date: Re: Problem with GetOrdinal
- Previous by thread: how to get back to menu-item in vb6
- Next by thread: Re: Problem with GetOrdinal
- Index(es):
Relevant Pages
|
|