Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I writ the below query for export data from sql to excel file
But now I face to this error please solution the problem
Thanks

Error:
Cannot create an instance of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".



SQl code:

SQL
insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\new\template.xls;',
'SELECT * FROM [Sheet1$]')
select * from School
Posted
Comments
Herman<T>.Instance 16-Jun-15 5:53am    
64 bit OS and 32 bit driver.....
Member 11240896 16-Jun-15 6:03am    
How to instal the driver?
Herman<T>.Instance 16-Jun-15 6:08am    
there is no Microsoft.Jet.OLEDB.4.0 64 bit driver.....
Not supported by MS
Member 11240896 16-Jun-15 6:17am    
what is the solution of this problem ?

1 solution

 
Share this answer
 
Comments
Member 11240896 16-Jun-15 6:25am    
There is no any help full way for this question please solution this problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900