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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (15,256)