Note that there are some explanatory texts on larger screens.

plurals
  1. POInserting Data into SQL Server from variables via SSIS
    primarykey
    data
    text
    <p>I have consumed simple web service for addition of two numbers and I am getting the result in xml format that I have stored in variable supposed named as my_data, now I have to insert that result in my sql table named as Data_result by writing query in oledb source editor, but unable to insert data using variable.I just want to store all the result calculated by my web service in sql table.</p> <p>Since I am newbie to SSIS, any help is greatly appreciated</p> <p>When I am trying to insert the data by the following query command:</p> <pre><code>"INSERT INTO Data_Result(Result) SELECT '"+@USER::my_data+"'" </code></pre> <p>It's giving error:</p> <blockquote> <p>Error at Data Flow Task [OLE DB Source [55]]: No Column Transformation was return by SQL Command</p> </blockquote> <p>--------Updated explanation of errors based on the solution given</p> <p>Error for executing query If I place the expression without the "" quotes then I get following error <img src="https://i.stack.imgur.com/O0s8f.png" alt="enter image description here"></p> <p>If I place the query in double quotes then following error is shown <img src="https://i.stack.imgur.com/WPqZB.png" alt="enter image description here"></p> <p>And if I remove User from User::Data Variable and place the query in double quotes then I get following screen <img src="https://i.stack.imgur.com/U412q.png" alt="enter image description here"> although the expression evaluates but after proceeding further on this evaluated expression when I am trying to search for the variable in expression column of Execute sql Task, then I am unable to locate the newly created variable, as shown below <img src="https://i.stack.imgur.com/13C0C.png" alt="enter image description here"></p> <p>------------<strong>Updated question according to other query</strong>----------</p> <p>Here is the picture of my whole work flow</p> <p><img src="https://i.stack.imgur.com/fpAHY.png" alt="enter image description here"></p> <p>This is what I have did inside the for each loop container under collection tab</p> <p><img src="https://i.stack.imgur.com/P7nap.png" alt="enter image description here"></p> <p>And this below setting I have done between Variable mapping tab,</p> <p><img src="https://i.stack.imgur.com/XypWC.png" alt="enter image description here"></p> <p>And in below screen shot, I am using Execute SQL Task to enter my data obtained from web service task into database using an insert query, but unable to fire proper insert query,</p> <p><img src="https://i.stack.imgur.com/LqCyM.png" alt="enter image description here"></p> <p>And below is my XML file,</p> <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt; </code></pre> <p> Reshma</p> <p>1988-09-23T00:00:00 ,</p> <p>This name and birthdate I received from web service I want to insert that into database table</p> <p>--------------<strong>Updated question for foreach loop container--------</strong></p> <p>Below is the foreach loop container I am using,</p> <p><img src="https://i.stack.imgur.com/TEml2.png" alt="enter image description here"></p> <p>But still I am not getting node value into variable and also I am suppose to make use of object type variable or it can work with string type of variable.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload