cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ASandeep
Frequent Visitor

Insert data table into sql table

Hi iam trying to add a dynamic data table into sql table using INSERT INTO Table SELECT * FROM %DATATABLE%. But iam not able to add datatable to sql table. I have used%% because iam placing q datatable variable in the query. Can anyone please help me. I want to achieve this on power automate desktop only

2 REPLIES 2
Shalu
Microsoft
Microsoft

Hello @ASandeep ,

 

Please ensure that the value that is stored in the variable %DATATABLE% is correct. Is the output stored with correct table name?

Also, ensure the SQL query that you are using to insert datatable into SQL table is appropriate.

For your reference: https://www.w3schools.com/sql/sql_insert.asp

 

Thanks and hope it can help you. 

Shalu

---------------------------------

Did I answer your question? Please consider to Mark my post as a solution! to guide others

johnaustin
Frequent Visitor

also watch out for any special characters in the SQL Insert statement. Any single quotes ' in string fields will need to be escaped.  

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,081)