Click here to Skip to main content
15,900,433 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
SELECT *
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                'Extended properties=Excel 8.0;Database=C:\Users\Jeenie\Desktop\Book1.xlsx;HDR=YES',
                'SELECT * FROM [Sheet1$]')
Posted
Updated 30-Jan-13 22:26pm
v2

1 solution

Have you gone through these[^]?
 
Share this answer
 
Comments
zeshanazam 31-Jan-13 4:38am    
yes...but same error exist
zeshanazam 31-Jan-13 4:38am    
Operating system is windows7 64 bit, office 2007 32bit
Ankur\m/ 31-Jan-13 4:59am    
Well then you need to give us more details like the usual causes of the error and what you already did to solve it.
zeshanazam 31-Jan-13 5:03am    
Error was OLE DB provider 'Microsoft.ACE.OLEDB.12.0' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode but then i installed AccessDatabaseEngine.....
zeshanazam 31-Jan-13 5:04am    
getting new error "Cannot create an instance of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)"

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