G
Guest
I have sucessfully used Reader.GetSchemaTable() to dynamically discover C# types from populated database tables. However, I need to determine the C# data type for the columns of empty tables in order to populate them. I have attempted to use GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new object[] {null, null, table.getTableName(), null}); However, the type returned in the schemaTable is a number and cannot be cased to a C# Type. In additions, I haven't discovered a way to map the number to the C# Type. Is there a way to predetermine the C# type or map the type number into the correct C# type.