Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
shashank
Helper III
Helper III

best way to push data from excel to sql server ..no of rows keep chaning in sheet ? any ideas

Hi Team,

 

Just wanted to know if any one can suggest best way to push data from excel to sql server ..no of rows keep chaning in sheet ?

2 ACCEPTED SOLUTIONS

Hi @shashank,

 

With one of  2 services (SSIS or Azure Data Factory), you could specify the share folder in server and ETL tools will import excel files in that folders. Just ask your end-users put data into that folder. This could be a traditional way for consolidation solution.

SSIS Refer topic and Tutorial: Create a pipeline with Copy Activity using Data Factory Copy Wizard

 

There is one notice that if you dont need to store data in sql server, you could skip this importing step and use query editor of Power BI to handle ETL process and gateway refreshing schedule to push directly data from excel to your reports.

 

View solution in original post

v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @shashank,

Adding to other post, you can also use other methods to move data from Excel to SQL Server.

a. Configure Excel workbook as a linked server in SQL Server and then import data from Excel into SQL Server table.
b.  Import data from Excel by using the OPENDATASOURCE or the OPENROWSET function.
c.  Use VBA (Visual Basic for Applications) in Excel macro to export data from Excel to SQL Server.

For more details, please review the following articles.
How to import data from Excel to SQL Server
How-To Synchronize Data Between Excel and SQL Server
Export data from Excel to SQL Server

Additionally, the issue is more related to migration between Excel and SQL Server, please post the question in SQL Server forums or Excel forum. It is appropriate and more experts will assist you.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @shashank,

Adding to other post, you can also use other methods to move data from Excel to SQL Server.

a. Configure Excel workbook as a linked server in SQL Server and then import data from Excel into SQL Server table.
b.  Import data from Excel by using the OPENDATASOURCE or the OPENROWSET function.
c.  Use VBA (Visual Basic for Applications) in Excel macro to export data from Excel to SQL Server.

For more details, please review the following articles.
How to import data from Excel to SQL Server
How-To Synchronize Data Between Excel and SQL Server
Export data from Excel to SQL Server

Additionally, the issue is more related to migration between Excel and SQL Server, please post the question in SQL Server forums or Excel forum. It is appropriate and more experts will assist you.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JohannesGbg
New Member

You can use an Excel AddIn such as SQL Spreads (www.sqlspreads.com) to let your end users push the data directly from Excel to SQL Server. It can also handle different number of rows. (disclaimer: I work with SQL Spreads).

 

tringuyenminh92
Memorable Member
Memorable Member

Hi @shashank,

 

For on-premise solution:

  • One time: could right click database instance and choose Task-> Import Data
  • Automatic: build SSIS package and schedule job in SQL server to run ETL process

For cloud solution:

  • One time: connect azure sql server instance in local SSMS and use import feature as above
  • Automatic: build ETL process with Azure Data Factory (this serivce is same as SSIS but for cloud)

Seems very good ideas , but if i'm planning to build a model in excel which is supposed to be use by user who can push data any time as per there requirement then what would be the solution.

 

Many thanks for your inputs.

Hi @shashank,

 

With one of  2 services (SSIS or Azure Data Factory), you could specify the share folder in server and ETL tools will import excel files in that folders. Just ask your end-users put data into that folder. This could be a traditional way for consolidation solution.

SSIS Refer topic and Tutorial: Create a pipeline with Copy Activity using Data Factory Copy Wizard

 

There is one notice that if you dont need to store data in sql server, you could skip this importing step and use query editor of Power BI to handle ETL process and gateway refreshing schedule to push directly data from excel to your reports.

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.