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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -