K
Koi
Hi,
I have table in SQL Server with column names "a", "b", "B", "d", "D",
....
When I use the SqlDataAdapter .Fill method to create & fill a DataTable
with data from that table, the columnnames have changed to "a", "b",
"B1", "d", "D1", ...
I suppose this has something to do with case sensitivity, but I don't
know how to fix it (the CaseSensitive property of the DataTable changes
nothing, as this apparently only applies to string comparisons within
the table, and not to column names)
I also tried the .FillSchema with SchemaType.Source prior to .Fill,
because that mentioned "without applying any transformations", but no
avail.
Any ideas?
I have table in SQL Server with column names "a", "b", "B", "d", "D",
....
When I use the SqlDataAdapter .Fill method to create & fill a DataTable
with data from that table, the columnnames have changed to "a", "b",
"B1", "d", "D1", ...
I suppose this has something to do with case sensitivity, but I don't
know how to fix it (the CaseSensitive property of the DataTable changes
nothing, as this apparently only applies to string comparisons within
the table, and not to column names)
I also tried the .FillSchema with SchemaType.Source prior to .Fill,
because that mentioned "without applying any transformations", but no
avail.
Any ideas?