Able to add rows collection into table of MSsql database
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-06-18 08:32 PM
Hi Blue Prismian,
I would to able to insert multiple rows of collection into a table of database MSSql (not one by one with loop because it's more slow). I create an action for execute query. My query is:
"INSERT INTO Table(Type,Id)
VALUES( (SELECT campo FROM Collezione output)
,'"&[Id]&"');"
"Id" is an int variable.
"Collezione output" is the collection that i would insert into database.
"campo" is a text value of Collection output.
the message error is :Incorrect syntax near output
Can you help me, please?Any solutions alternative will be appreciate :)
Do you have improve code (c# or another) for to do this?
Thanks.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-10-18 12:10 PM
Hello GM,
By seeing your query, as ""id"" is int column and you are sending as string. Please try with below query
please find an attachment for query
Hope it will work :)
Thanks & Regards,
Vijay Rudrappa Dodamani
