This should get you on the right track
DECLARE @Body NVARCHAR(MAX);
SET @Body = N'<HTML><BODY><TABLE BORDER="1">' + CAST((
SELECT
(SELECT name AS 'TD' FOR XML PATH(''), TYPE),
(SELECT object_id AS 'TD' FOR XML PATH(''), TYPE),
(SELECT SCHEMA_NAME(schema_id) AS 'TD' FOR XML PATH(''), TYPE)
FROM
sys.tables t
FOR XML RAW('TR'), ELEMENTS
) AS NVARCHAR(MAX));
SET @Body = @Body + '</TABLE></HTML>';
The SQL Guy @ blogspot[/url]
@SeanPearceSQL
About Me[/url]