I want to display all data in my Database without writing a select for each table - how can I do this?
select
I do not want to do this:
adding table name header to the script of Vishal Gajjar:
DECLARE @sqlText VARCHAR(MAX) SET @sqlText = '' SELECT @sqlText = @sqlText + 'select '''+QUOTENAME(name)+'''; SELECT * FROM ' + QUOTENAME(name) + CHAR(13) FROM sys.tables EXEC(@sqlText)