The enumerated DataReader returns incomplete information for batch queries that have different schemas (308625)
The information in this article applies to:
- Microsoft ADO.Net 2.0
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic 2005 Express Edition
- Microsoft .NET Framework
This article was previously published under Q308625 SYMPTOMS
If you create the DBEnumerator object on batch queries with different schemas, DBEnumerator returns incorrect or incomplete information. For example, if you run a batch query that contains two SELECT statements that return different schemas, the second statement may not return the entire schema.
CAUSE
This problem occurs because, by design, you can only use the DBEnumerator object with one result set.
RESOLUTION
To work around this behavior, obtain a DBEnumerator for each result set, and then call the NextResult method of a .NET data
provider's DataReader object.
Modification Type: | Minor | Last Reviewed: | 3/10/2006 |
---|
Keywords: | kbprb kbreadme kbSqlClient kbSystemData KB308625 |
---|
|