Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Import excel 2007 into sql table using OpenRowSet or T-SQL Query

$
0
0

Hi,

I have a set of data in excel 2007 .i have to import that excel sheet into my sql database table. i need a sql query for that.

i have tried this query but this is not working.


SELECT *
FROM OPENROWSET ('Microsoft.Jet.OLEDB.4.0',
                'Excel 8.0;Database=E:\Data\addressl.xls;IMEX=1',

                'SELECT * FROM [Sheet1$]')


  SELECT *
  FROM OPENROWSET(  'Microsoft.Jet.OLEDB.4.0',
                                      'Excel 8.0;Database=E:\Data\addressl.xls', [Sheet1$])

Regards,

Abdul Khadir.

 



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>