OLEDB, IsAutoIncrement, Access Autonumber field, not working...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dim oComm As New OleDb.OleDbCommand("SELECT * FROM " & _formattedtablename & " WHERE 1=-1", _Connection)
Dim oReader As OleDb.OleDbDataReader = oComm.ExecuteReader(CommandBehavior.SchemaOnly)
Dim oTable As Data.DataTable = oReader.GetSchemaTable

This:
oRow.Item("IsAutoIncrement")
Returns false even if the column is an Access autonumber field.

Any ideas?
 
It has been more than 3 days. Isn't someone at MS going to answer this? Is that no longer part of the MSDN subscription? Was my original message not connected to my subscription?
 
Let's try again. My question is: Does this happen to everyone? If so, is this a bug in the OLEDB driver for Access (I tested on 2000) or some kind of problem with the OLEDB namespace classes in ADO.NET? If it is a problem, will it be tagged as a bug and fixed?
 
Back
Top