Quantcast
Channel: Comments on: SQL SERVER – Query to Find ByteSize of All the Tables in Database
Browsing latest articles
Browse All 19 View Live

By: Naveen Kumar

select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN sys.columns b ON a.object_id=b.object_id Where type = ‘u’ Group by a.name

View Article



By: Saurabh Savaliya

very helping article thanks buddy

View Article

By: abhIShek BandI

Hi Pinal, My table structure is like this. using with above script am getting the Max_Length as “3″ Column_name Type Computed Length ID int no 4 SPName varchar no -1 But varchar(max) length is...

View Article

By: Rahul

Nice thank you for such a nice information

View Article

By: Aman Ankit

Nice piece of information. As i am beginner as a DBA . I have started referring all your blogs from the beginning.

View Article


By: Avinash

Select ISNULL(t.name,’AllTables’)[TableName],Sum(C.max_length)[TableSize] from sys.tables T join sys.columns C on t.object_id=C.object_id Group by rollup (t.name) LikeLike

View Article

By: Avinash

Select ISNULL(t.name,’AllTables’)[TableName],Sum(C.max_length)[TableSize] from sys.tables T join sys.columns C on t.object_id=C.object_id Group by Grouping Sets (t.name) —-for DBs having compatablilty...

View Article

By: Pinal Dave

Good One. LikeLike

View Article


By: sathish (@apshathish)

i am the beginner.. so may i know what is byte_length…

View Article


By: Naveen Kumar

select a.name,Sum(b.[max_length]) from sys.objects a INNER JOIN sys.columns b ON a.object_id=b.object_id Where type = ‘u’ Group by a.name

View Article
Browsing latest articles
Browse All 19 View Live




Latest Images