<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Able to add rows collection into table of MSsql database in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Able-to-add-rows-collection-into-table-of-MSsql-database/m-p/59052#M12784</link>
    <description>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)
,'"&amp;amp;[Id]&amp;amp;"');"
&amp;nbsp;

"Id" is an&amp;nbsp;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&amp;nbsp; have&amp;nbsp;improve code (c# or another) for to do this?

Thanks.

&amp;nbsp;</description>
    <pubDate>Thu, 28 Jun 2018 19:32:00 GMT</pubDate>
    <dc:creator>GM</dc:creator>
    <dc:date>2018-06-28T19:32:00Z</dc:date>
    <item>
      <title>Able to add rows collection into table of MSsql database</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Able-to-add-rows-collection-into-table-of-MSsql-database/m-p/59052#M12784</link>
      <description>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)
,'"&amp;amp;[Id]&amp;amp;"');"
&amp;nbsp;

"Id" is an&amp;nbsp;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&amp;nbsp; have&amp;nbsp;improve code (c# or another) for to do this?

Thanks.

&amp;nbsp;</description>
      <pubDate>Thu, 28 Jun 2018 19:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Able-to-add-rows-collection-into-table-of-MSsql-database/m-p/59052#M12784</guid>
      <dc:creator>GM</dc:creator>
      <dc:date>2018-06-28T19:32:00Z</dc:date>
    </item>
    <item>
      <title>Hello GM,
By seeing your…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Able-to-add-rows-collection-into-table-of-MSsql-database/m-p/59053#M12785</link>
      <description>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 &amp;amp; Regards,
Vijay Rudrappa Dodamani</description>
      <pubDate>Tue, 30 Oct 2018 12:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Able-to-add-rows-collection-into-table-of-MSsql-database/m-p/59053#M12785</guid>
      <dc:creator>VijayDodamani</dc:creator>
      <dc:date>2018-10-30T12:10:00Z</dc:date>
    </item>
  </channel>
</rss>

