Solved

I wanna retrieve data from two worksheets in the .xlsx file by doing join operation on them using olebd c#.wrote the query as (@"select * from [sheet1$] inner join [sheet2] on sheet1.Id = sheet2.id"

Posted on 2016-10-22
2
17 Views
Last Modified: 2016-11-11
But it's giving error "no value passed to one or more required parameters"..
0
Comment
Question by:Susmita Patra
  • 2
2 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 500 total points (awarded by participants)
ID: 41855577
The exact SQL statement needed will depend on how you are opening the connection to the MS-Excel workbook file, certainly depending if you are using the "HDR=Yes" parameter, but I suspect you may need to revise what you have at present to something like this:

SELECT * FROM [Sheet1$] INNER JOIN [Sheet2$] ON [Sheet1$].[Id] = [Sheet2$].[id]
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 41883574
Without further input from the Asker this comment is the 'best' solution.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Outlook Free & Paid Tools
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now