Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 excel with database verification
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - 06/03/2014 :  12:02:03  Show Profile  Reply with Quote
i have used this query:

query = "select c.* from emp as c innerjoin(select * from openrowset('microsoft.ACE.OLEDB.12.0','database=E:\excel to db\exceldb.xlsx;hdr=yes','select * from [sheet1$])"

here i am comparing exceldb excel sheet with emp database for checking data in excel is present in db or not

i have refered this link for query :

but i am getting error as :

The OLE DB provider "Microsoft.Ace.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Cannot initialize the data source object of OLE DB provider "Microsoft.Ace.OLEDB.12.0" for linked server "(null)"
pls help me to execute
Thanks in advance.

  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000