sql - Calculating the length of each record in the table -
sql - Calculating the length of each record in the table -
possible duplicate: how find rowsize in table
how calculate length of each record in table (sql server 2008)
try len() instead of datalength()
select len(yourcolumnname) lengthofentry yourtablename this gives length of each entry in column
just string them every column entries entire table
example:
select len(yourcolumnname) column1, len(yourcolumnname2) column2 yourtablename you can utilize sum() total of every character in column
select sum(len(yourcolumnname)) column1, sum(len(yourcolumnname2)) column2 yourtablename sql sql-server-2008 tsql
Comments
Post a Comment