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

Answer Posted / rajkumar

If the string has the space before the like 
select LEN('  raj')
select dataLENgth('  raj')
Both consider the space.

but space is after the string len is not bother about space it wil be trucated.

datalenth counted with space.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What programming language would you use to create embedded functions in ssrs?

156


What are the disadvantages of indexes?

714


What is the maximum rows in sql server table?

686


How to drop existing views from a database in ms sql server?

761


In what sequence sql statement is processed?

776


What is sql server management studio? : sql server management studio

755


Differentiate between SQL and ORACLE joins and write their syntax.

792


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1432


What is application role in sql server database security? : sql server security

768


What is isnull() operator?

793


Which Model uses the SET concept

758


Define Business Edition in SQL Azure?

98


How do I find the default sql server instance?

711


What is transaction server consistency?

736


Can a table be created inside a trigger?

735