-- SQL Server

select TC.TABLE_NAME, CC.Column_Name from information_schema.table_constraints TC
inner join information_schema.constraint_column_usage CC on TC.Constraint_Name = CC.Constraint_Name
where 
	TC.constraint_type = 'Unique' AND
	TC.TABLE_NAME != 'sysdiagrams'
order by TC.Constraint_Name
