Select Excel
Publish by
Jorge Cunha
on
20:26
Monday, July 14, 2008
Etiquetas:
Excel
,
IT Tech Guys
,
SQL
,
SQL Tips and Tricks
I am going to show on select i use to read excel files XLS
Example:
Select *
FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
'Data Source=D:\import\Excel_file.xls;Extended Properties=Excel 8.0')...Sheet1$
To do a proper use of these you must have your excel with headings and these heading must be unique and where you see Sheet1$ is the name of your sheet in your excel remember to keep these name simple and without spaces. The columns must be well formated or you don´t get the results you expect.
Help the world go to http://www.ami.pt
No response to “Select Excel”
Post a Comment