Hi
I want to inject some of the XML data that is in workflow into a MS SQL database, is there a documented way to do this?
Thanks
Liam
Hi
I want to inject some of the XML data that is in workflow into a MS SQL database, is there a documented way to do this?
Thanks
Liam
Use the Database Query task in Workflow and specify a Dynamic SQL statement that uses the UPDATE command. Make sure to uncheck the Expect record set option since UPDATE commands do not return a recordset. The Dynamic SQL allows you to specify data values, so for instance, you could use a statement akin to this one:
UPDATE MyTable SET MySQLField=@(1,8,8,1,16,KeepCase,Trim)
Hi Liam,
Sure we can, in order to do this, you must follow the next steps.
You can create some variables on your process that will contains your data values and then use it on your SQL query, like on the image below
Then in this way you will be able to insert data from xml file in to your SQL database.
Best Regards,
Juan