SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

jaysysa
Starting Member

India
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 : http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=146241

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.


jay
  Previous Topic Topic Next Topic  
 New 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.04 seconds. Powered By: Snitz Forums 2000