Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
selvaonline
Starting Member
1 Post |
Posted - 2010-12-29 : 13:12:15
|
I'm trying to use the SSIS Execute SQL Task to pull XML from a SQL 2005 database table. The SQL is of the following form:SELECT ( SELECTEmp.EmpId 'EmpId',Emp.EmpName 'EmpName', FROM Employee Emp ORDER BY Emp.EmpId desc) FOR XML PATH('EmpName'),Root('Employee'), TYPE If I try to use OLEDB connection I get the following error:<ROOT><?MSSQLError HResult=\"0x80004005\" Source=\"Microsoft XML Extensions to SQL Server\" Description=\"No description provided\"?></ROOT>Can anyone tell me why the SELECT ... FOR XML PATH... is not working with OLEDB Connection?Thanks in advance all ! Kindly help me on this pls. |
|
latch
Yak Posting Veteran
62 Posts |
|
|
|
|