SSIS: Execute SQL Task with XML Result Set -
11-07-2005
, 04:38 AM
I am having problems with the XML result set type in the Execute SQL
Task. When I run the package in debug mode my string variable
containing the result reads as follows:
<ROOT><?MSSQLError HResult="0x80004005" Source="Microsoft XML
Extensions to SQL Server" Description="No description
provided"?></ROOT>\r\n
My Execute SQL Task is set up with XML as result set type, OLE DB
connection type, Direct Input sql source type and a statement that
reads:
SELECT definition.query('/*') AS SystemDef
FROM META_System
WHERE (system = ?)
To make sure that the error is not related to the parameter I tried
switching the ? for the actual system id, but the problem remains. The
task is contained in loop that loops through each system id. When I
test the query within the "Build Query..." tool I get the following
XML:
<system xmlns="http://mygarbleddomain/schemas/system">
<name>P29e</name>
</system>
The column named definition in the META_System table is a typed XML
column. Under the Result Set pane in the Execute SQL Task Editor I have
set the Result Name to 0 and Variable Name to User::SystemDef, which is
defined to be of type String and in scope of the task in question.
Has anyone else had this problem? Can anyone point out what I am doing
wrong?
Regards,
Lars Rönnbäck
Running the September CTP, Developer Edition |