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

Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

859


List types of tables in SQL Azure?

102


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

608


What is the difference between set and select?

579


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

520






What methods do you follow to protect from sql injection attack?

519


How to encrypt data between dialogs?

574


How to disable stored procedure sql server?

963


Name 3 ways to get an accurate count of the number of records in a table?

577


Disadvantages of the indexes?

591


what is a correlated sub-query? : Sql server database administration

482


What does the update command do?

615


How can windows applications connect to sql servers via odbc?

585


What is the cartesian product of table?

548


What is the size of transaction log file?

489