Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / bindu

The DATALENGTH function counts both trailing spaces and preceeding spaces when calculating the length of the expression.
The DATALENGTH function will return NULL, if the expression is NULL.

The LEN function does NOT count trailing spaces at the end of the string when calculating the length of the string.
The LEN function does count spaces at the start of the string when calculating the length of the string.
The LEN function will return NULL, if the string is NULL.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recompile sql server?

988


When does a workload on SQL Azure get throttled?

129


Which are the olap features?

904


Why is the need for data conversion transformations?

975


How to concatenate two character strings together?

1053


What is the data tier application?

169


What is the order by used for?

965


What is Federation and Federation Member?

92


What are the difference between primary keys and foreign keys?

913


Explain the benefits of user-defined functions?

985


How would you choose between a clustered and a non-clustered index?

914


What are the components of dbms?

902


What is autocommit mode in sql server?

1073


How to store and query spatial data?

933


as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration

855