unsorted column schema
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have this code for getting the column names of a table in an Access database:
DataTable schemaColumns = Conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new object[] {null, null, tableName, null}); foreach (DataRow column in schemaColumns.Rows) { string columnName = (string) column["COLUMN_NAME"]; ...
but it is returning the column names already sorted, is there a way to get them in the order they were created? (this is what I get when opening the database in Access) thanks