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 do you mean by an execution plan? Why is it used?

1026


What are cascading parameters in ssrs reports?

231


What are the different types of sub-queries?

1043


what is package and it uses and how can u call a package

2014


what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration

1049


Define self join?

1031


What is the difference in accessing db between sql server vs sql azure?

174


What is the Main Difference between ACCESS and SQL SERVER?

1135


What information is maintained within the msdb database?

982


What is the purpose of a table?

959


Can we call stored procedure in view in sql server?

900


Please illustrate physical database architecture? : SQL Server Architecture

988


Write a program to fetch first 10 records from a file?

1011


What is the difference between a function and a stored procedure?

1072


How many databases instances are there in sql server 2000?

1098