I am using VB.NET to query through an Excel SQL table using ADO.
The general way is as follows:
SELECT [firstname], [secondname] FROM [Sheet1$]
Which works fine. However, one of the headers is called 3, so I want to do:
SELECT [firstname], [secondname], [3] FROM [Sheet1$]
However, this does not work. I know what I can use *to get all columns, but later I want to use (using dataReader):
dr("3")
which will not work
Any ideas?
source
share