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.

  • Great, thanks! 🙂