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

Exporting the data from table to excel using query

$
0
0

Hi All,

I am trying to load the data from table to excel using the below t-sql query command.

insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0', 
    'Excel 8.0;Database=D:\Test.xls;', 
    'SELECT * FROM [Sheet1$]') SELECT [FilmID],[FilmName] FROM [dbo].[tblFilm]

But, I am getting the below error.

Msg 7302, Level 16, State 1, Line 1
Cannot create an instance of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".



I tried my part to find the solution in the internet, but I am unable to find.

Please help me.

Thanks,

Anilkumar



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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