SELECT
s.name AS Tabla,
s2.name AS Columna,s2.xtype,
CASE s2.xtype
WHEN 127 THEN 'BigInt'
WHEN 56 THEN 'Int'
WHEN 167 THEN 'VarChar'
WHEN 61 THEN 'DateTime'
WHEN 52 THEN 'SmallInt'
ELSE 'Tipo sin descripcion (Cod: ' + CONVERT(VARCHAR, s2.xtype) + ')' END AS tipo,
isnull(s3.VALUE, 'Sin descripcion') AS Descripcion
FROM sysobjects s
INNER JOIN syscolumns s2 ON s2.id = s.id
LEFT JOIN sysproperties s3 ON s3.id = s2.id AND s3.smallid = s2.colid
WHERE s.xtype = 'U' AND s.name = 'tProveedores'