select @result=@input.query(\'*\') for xml raw,type
Above statement will generate following alert: Msg 6819, Level 16, State 3, Line 2 Th
DECLARE @RESULTS XML SET @RESULTS = (SELECT * FROM Table_Name FOR XML AUTO) SELECT @RESULTS