SQL SERVER | Elencare le colonne presenti in una tabella
SELECT co.Column_Name AS 'Name' ,co.Data_Type AS 'Type' ,ISNULL(co.Character_Maximum_Length, 0) AS 'Lenght' ,CASE WHEN co.Data_Type='Bit' AND NOT co.Column_Default IS NULL THEN CASE WHEN REPLACE(REPLACE(REPLACE(ISNULL(co.Column_Default,''),'(',''),')',''),'''','') = 0 THEN 'False' ELSE 'True' END…