Hi,
I want to have an XML resultset in the Execute SQL task and then place the resultset to Send Mail message with Carriage Return:
I have the following steps:
Execute SQL
SQLStatement:
select distinct col1, col2
from table1
WHERE col1 = 203
GROUP BY col1, col2
FOR XML AUTO;
Resultset: XML
Resultset Name: 0; Variable Name: User::Result1
XML Task:
Operation Type: XPath
Source Type: Variable
Source: User::Result1
Destination: User::Count1
Second Operand Type: Direct Input
Second Operand: count(//table1)
Send Mail Task:
Message Source: @[User::Result1]
Everything works fine, except that the result does not have a carriage return:
<ROOT><table1 col1="203" col2="Spare 203"/><table1 col1="203" col2="SPEED"/><table1 col1="203" col2="SPEED 4545"/></ROOT>
How can I make the result to be:
<ROOT>
<table1 col1="203" col2="Spare 203"/>
<table1 col1="203" col2="SPEED"/>
<table1 col1="203" col2="SPEED 4545"/>
</ROOT>
cherriesh