This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH c1 | |
AS (SELECT | |
o.name AS tablename, | |
c.colid, | |
CONVERT(varchar(10), c.colid) + '|' + c.name + '|' + t.name + '|' + CONVERT(varchar(10), c.length) + '|' AS markdown | |
FROM sysobjects o | |
INNER JOIN syscolumns c | |
ON c.id = o.id | |
INNER JOIN systypes t | |
ON t.xtype = c.xtype |