What are the difference between data length and length in
SQL Server-2008?

Answer Posted / sapthagiri

LEN
Returns the number of characters, rather than the number of bytes, of the given string expression, excluding trailing blanks.

DATALENGTH
Returns the number of bytes used to represent any expression.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if null values are involved in datetime operations?

609


How to sort the query output with order by clauses in ms sql server?

727


What is awe?

670


What are the different types of replication you can set up in sql server?

623


What is reportserver and reportservertempdb ?

116






How do you migrate data from mssql server to azure?

155


What is use of except clause?

728


How to create function without parameter in sql server?

647


How will you add a dimension to cube? : sql server analysis services, ssas

640


what are user defined datatypes? : Sql server database administration

622


How do I clean up sql server transaction log?

641


Describe the left outer join & right outer join. : sql server database administration

667


Explain the microsoft sql server delete command?

620


Tell me what is normalization? Explain different forms of normalization?

650


How can I check if a view exists in a sql server database?

654