In SQL Server, I would like see Table_Name and all the Columns associated with that Table_Name in a database. So the Output should look like this:
TABLE_N
select name as TABLE_NAME, STUFF(COLUMN_NAME, 1, 1, '') AS COLUMN_NAME from sys.tables t CROSS APPLY ( SELECT ',' + name AS [text()] FROM sys.columns c WHERE c.object_id = t.object_id FOR XML PATH('') ) o (COLUMN_NAME)