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 Platform Community / Forums / Power Automate / Create table in SQL se...
Power Automate
Unanswered

Create table in SQL server DB from a csv using Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there a was to directly create a new table in a DB in SQL server from a csv file located at a desktop location using Power Automate Desktop. It would be like importing a flat file in SQL server. I know that we can first create a schema in SQL server DB and then import the data but I am interested to know if there's a way to directly import the csv file without creating the schema first.

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @Anonymous 

    Read CSV and insert that data table into sql

    Is this you need?

    Or please explain your scenario in detail.

     

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Anonymous 

     

    There aren't any pre-built actions or methods readily available in Power Automate Desktop for this task.

     

    However, you can utilize scripting languages such as .NET (C# or VB) to accomplish it.

     

    Alternatively, within Power Automate, you can start by reading the data using the "Read from CSV file" action. After that, as you mentioned(Schema would be created first then insert the values into table), you would need to extract all column details to create an SQL table dynamically. Then, by iterating through the data, you can insert the values into the table.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard