September 14, 2005 at 6:30 am
Hi
I have 100 records in a excel file.
I want a query to select these records.
So in sql server is it possible
If y Please help me.
Than'x
September 14, 2005 at 7:20 am
SELECT * FROM
OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\temp\book1.xls;HDR=YES', [sheet1$])
Change to the path for the xls file and use HDR=NO if there are no headers in the file (in which case the columns will be named F1,F2... etc)
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy