Merging Static Excel data with Dynamic data from SQL Server

Hi Team,

I have some data in Excel - sheet1 which would be static.

Now I need to import data from SQL Server (using a query) and Union above static data with this SQL data and later I will have to create PowerPivot table in Sheet2.

Which is suitable option for me to import data from SQL to excel as I see "From SQL Server" option under "Data" and "Power Query" tab as well.
How to merge above SQL data with existing static

August 19th, 2015 9:01am

You should get several ideas from this link.

http://www.excel-sql-server.com/excel-sql-server-import-export-using-vba.htm#Introduction

There are several other ways to do this as well.  Post back if you have additional questions.

Free Windows Admin Tool Kit Click here and download it now
August 19th, 2015 11:29am

Hi Vaibhav,

According to your description, this issue is more related to PowerPivot for Excel, the PowerPivot forum is a better place for this issue, and we will move it there for you.

Regards

Starain

August 19th, 2015 9:52pm

For a "real" UNION where you want to add rows from one table under the other, you should Power Query's append-function: https://support.office.com/en-nz/article/Append-queries-Power-Query-e42ca582-4f62-4a43-b37f-99e2b2a4813a?ui=en-US&rs=en-NZ&
August 20th, 2015 3:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics