I think the only difference between
OleDbConnection.GetOleDbSchemaTable() and
OleDbDataReader.GetSchemaTable() is that the data reader already knows
what table it is scheming while the connection needs to be given a guid
of the table in question.
However, are you sure your solution worked?
The Get operations deliver a DataTable representing the schema of
another "DataTable" (eg name in target.Text.)
schemaTable.PrimaryKey yields the pkey of the schema not the target.
One must read the schemaTable DATA to locate information about the
target.
Do you mean that you turned the target table into a DataTable and got
its pkey? If that table had any size wasn't it expensive to load?
thx
md
*** Sent via Devdex
http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!