开发者

Why MS Access adodb in .NET returns 34 in fieldcount when table has 42 fields?

Why MS Access adodb in .NET returns 34 in fieldcount when table has 42 fields ? I see 42 fields in table of my MS Access mdb database. But ADODB layer in .NET sees only 34 fields. The Outofrange exception occures when I am calling met开发者_开发问答hod getOrdinal("FieldName") of reader class.

Is it something I am missing in setting up connection, license or anything?

Thank you


Have you changed the table since you wrote the code? Sometimes you have to relink the tables inside Access, or it won't see the new columns.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜