Home Forums SQL Server 2008 T-SQL (SS2K8) The FOR XML clause is invalid in views, inline functions, derived tables, and subqueries when they contain a set operator. RE: The FOR XML clause is invalid in views, inline functions, derived tables, and subqueries when they contain a set operator.

  • Just thought I'd add my thanks for turning this problem into an easy task having had the same 'wrap' issue! Used the view technique....superb!