Manipulate execution block
ampo
Posts: 16
Hello.
I got the execution block and manipulated it by getting its value (ToString()) to string variable.
Now I want to execute the updated string.
How can I set it back to the block?
Any other way?
Thanks.
I got the execution block and manipulated it by getting its value (ToString()) to string variable.
Now I want to execute the updated string.
How can I set it back to the block?
Any other way?
Thanks.
Comments
As far as I am aware, you cannot make changes to the ExecutionBlock script and write it back. What you could do is to execute your own bespoke SQL code in-line with the SQL batches contained in the ExecutionBlock using a standard ADO .NET connection. Here is some sample code here that explains how to do it. Note well: the synchronization script was produced with the option to produce transactional plumbing off, otherwise setting up the transactions using C# code will fail.