Skip to content Skip to sidebar Skip to footer

How To Select [header Text W. Dot] As Xxx From An Excel Table?

Summary: Using the Jet.OLEDB provider and the SQL query, I do not know how to access the column the header text of which contains a dot. Is there any way to escape the dot in the S

Solution 1:

It appears that SSIS replaces period (.) with number sign (#) when I tried to load similar spreadsheet as you provided through a SSIS package. So, I am guessing you would need to either load it through SSIS if you have that option available, otherwise you could probably try querying it directly like this:

SELECT
  [Date] AS d,
  [Code] AS code, 
  [Abbrev# Packing] AS packing,
  [Price] AS price
FROM[Sheet1$]

SSIS Sample

Post a Comment for "How To Select [header Text W. Dot] As Xxx From An Excel Table?"