Solved

Excel ODBC Driver

Posted on 2012-04-08
3
627 Views
Last Modified: 2012-06-21
I want to be able to sort through an Excel/CSV file using SQL commands. Is there any way that I can do that?
0
Comment
Question by:pzkhan
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 37822142
If SQL Server is 32 bit you can use the JET driver and specifically OPENROWSET()
0
 
LVL 41

Assisted Solution

by:dlmille
dlmille earned 250 total points
ID: 37822159
Yes, using VBA you can adapt the following to sort through a CSV file:

http://vbadud.blogspot.com/2008/09/opening-comma-separate-file-csv-through.html

And, you can adapt the following to sort through an Excel file:

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

Here's another good link I use as a ready reference:
http://www.erlandsendata.no/english/index.php?t=envbadac

If you need further assistance, please don't hesitate to ask.

Dave
0
 
LVL 9

Accepted Solution

by:
anthonymellorfca earned 250 total points
ID: 37834761
you can also do it with MS Query and also Powerpivot (SQL is within)

ps your version of Excel is highly relevant.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

747 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

13 Experts available now in Live!

Get 1:1 Help Now