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 ArticleBy: 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 ArticleBy: Aman Ankit
Nice piece of information. As i am beginner as a DBA . I have started referring all your blogs from the beginning.
View ArticleBy: 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 ArticleBy: 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 ArticleBy: 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
More Pages to Explore .....