Home:ALL Converter>How to left join Excel table to a table in SQL Server database

How to left join Excel table to a table in SQL Server database

Ask Time:2015-09-16T07:26:53         Author:Alex Ryu

Json Formatter

I have a table (tbl1) in an Excel file with about 70k rows. I have linked that table into Power Pivot. There is another table (tbl2) in SQL Server with millions of rows that I need to left join to the table in my Excel file on

tbl1.[Member Number] = tbl2.[memid]

What query should I use to do it without having to import the whole tbl2 from SQL Server (throws error on Power Pivot due to memory constraints)?

Preferred environment is Power Pivot, but I do have SQL Sever Management Studio. I don't have WRITE permission in the server where tbl2 is located. I do however have WRITE access in a different server.

Thank you!

Author:Alex Ryu,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32597289/how-to-left-join-excel-table-to-a-table-in-sql-server-database
Prakash Gautam :

Import the Excel file into the SQL server where you have WRITE access, do the join there and import the data from this server. Any problem you see with this approach?",
2015-09-16T10:25:18
yy