• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

SQL query Excel sheet

Hello and how are things I am looking to find the best way to get to an excel file sheet data. I want to query this data the bets and most efficient way out there today. I have an SQL 2005 server and I want to pass from my C# 2.0 program using Application Blocks,  the Select command to query the data that is in an Excel file sheet. I know there is Jet that was used, but wonder is that the only way to do this with an OLE jet connection?

Should I maybe look at converting this to XML would that be better? Thanks :)

 
0
Corey_819
Asked:
Corey_819
  • 2
1 Solution
 
J_CarterCommented:
you could set it up in SQL 2005 as a linked server and query it that way.

http://support.microsoft.com/kb/306397

0
 
Corey_819Author Commented:
J Carter, good idea, but sadly I have some road blocks with the SQL instance I am getting data from. Not techical, just some other things. Whats your thoughts on converting it to XML file then using XPath Query? Is that okay on performance? I am looking to use this Xpath query to do sort of an or statement so I can build my objects configuration or format.
0
 
J_CarterCommented:
Sorry, not to familiar with Xpath
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now