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
28 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
My experience with Windows 10 over a one year period and suggestions for smooth operation
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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