I need to find boolean column in my DB. I already know how to get data from all my tables:
DECLARE @sqlText VARCHAR(MAX)
SET @sqlText = ''
SELECT @sqlText = @sqlText + ' SELECT * FROM ' + QUOTENAME(name) + CHAR(13) FROM sys.tables
EXEC(@sqlText)
How to display only columns that were declared as boolean (bool)?