); declare @field_list nvarchar(max); set @table = N'vwMaterial'; set @field_list = N''; SELECT u.name + '.' + t.name AS [table], )) AS [table_desc], )) AS [column], )) AS [column_desc], c.colorder into #temp FROM sysobjects t INNER JOIN sysusers u O…