0

I have connected to a SQL server in Excel . I want to be able to import data from a table located on the server. However this table is too big to import into Excel, I'm talking millions of rows. I only want to import certain data into Excel, for example only import the data where the date is between a certain range. Where can I do this in Excel? If there are any alternatives to retrieving data from a large database please let me know.

MDCCL
8,5303 gold badges32 silver badges63 bronze badges
asked Jul 24, 2014 at 14:04
4
  • Which version of Excel? Commented Jul 24, 2014 at 15:45
  • @MarkStorey-Smith 2010 Commented Jul 24, 2014 at 16:01
  • 1
    Try the Power Query add-in. Commented Jul 24, 2014 at 16:17
  • @MarkStorey-Smith: That seems to have licensing limitations if OP is still on Office/Excel 2010. Commented Jul 24, 2014 at 21:17

2 Answers 2

1

In EXCEL, from the Data ribbon, Get External Data tab, select From Other Data Sources -> From SQL Server.

Follow the wizard to connect to your server and create a query.

answered Jul 24, 2014 at 22:00
1
  • How can I create a query? It gives me the list of tables on the database but it doesn't give me an option to create a query Commented Jul 25, 2014 at 13:13
0

If you can define the T-SQL query to filter the rows to a specific date range, create a view and choose the view object within Excel instead of the source table.

answered Jul 24, 2014 at 15:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.