web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

CSV -> Flow -> MS SQL

(0) ShareShare
ReportReport
Posted on by 8
Hi guys, ich hope you can help me.

The generally question is: can flow import csv files to ms sql ?

I have build a power app which receives its data from an ms sql database. At the moment I receive every morning a csv file by email which will be imported by powershell bulkImport on an virtual system.

I do not want to use the virtual windows instance and try to figure out if it is possible to realize the Bild import with Microsoft Flow.

Maybe anyone did this before ? Any code snippets or things that will help me ? Or is this not possible ?

Thank you community, my Google an forum searches are not wävery successfully:-/
Categories:
I have the same question (0)
  • Marco_h Profile Picture
    8 on at
    Without autocorrect;-)

    ##################

    Hi guys, ich hope you can help me.

    The generally question is: can flow import csv files to ms sql ?

    I have build a power app which receives its data from an ms sql database. At the moment I receive every morning a csv file by email which will be imported by powershell bulkImport on an virtual system.

    I do not want to use the virtual windows instance and try to figure out if it is possible to realize the Bulk import with Microsoft Flow.

    Maybe anyone did this before ? Any code snippets or things that will help me ? Or is this not possible ?

    Thank you community, my Google and forum searches are not very successfully:-/
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Marco_h,

     

    Do you want to insert the data of CSV files into a SQL Table?

    There is no way to analyze the data of a CSV file in Microsoft Flow currently, you could consider convert CSV files into Excel files manually and then we could insert the data of Excel files into a SQL table in Microsoft Flow.

    If you have converted CSV files into Excel files, please take a try to insert data into a SQL Table with the following workaround:10.JPG

     

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:
    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best regards,

    Kris

  • Marco_h Profile Picture
    8 on at
    Thank you. This resolves the problem.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Can you please explain, How to convert CSV files into Excel files Automatically..

     

    Is there any option (or) connector available?

  • harsh_sharma Profile Picture
    4 on at

    Hi Kris,

     

    Is there any limit on Number of Rows that can be inserted in to the table at a time?

  • schlaufuchs Profile Picture
    8 on at
    AO
  • juresti Profile Picture
    319 on at

    Hello, I think I can help you with this issue.

     

    If you use a tab delimited file instead you can try this.

     

    https://powerusers.microsoft.com/t5/Flow-Cookbook/Read-tab-delimited-CSV-and-write-records/m-p/246459#M160

     

  • anton-khrit Profile Picture
    197 on at

    You can use Parse CSV action from Plumsail Documents connector. It allows you to convert CSV into an array and variables for each column. Please read this article demonstrating how it works.

     

    Once you parsed CSV you can iterate through result array and use this data to insert into SQL table.

  • Hairy_Drumroll Profile Picture
    251 on at

    Excel "Get Rows" action is not longer available.

    Use "List Rows Present in a Table" instead.

  • takolota1 Profile Picture
    4,978 Moderator on at

    If anyone wants a comma delimited CSV reader / parser using only the standard actions in Power Automate that can also handle larger files, in-data commas, and in-data line-breaks, then try this template flow:
    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard