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

How to reaname table name without using sp_Rename in sql server..?

1039


How to create “dependant” parameter “make, model, year”

137


How to connect to a sql server using odbc_connect()?

1204


What is primary key index?

1017


What are types of scd? : sql server analysis services, ssas

1079


Why use view instead of a table?

1003


How can a user-defined datatype be created?

1037


how to create a scrollable cursor with the scroll option? : Sql server database administration

1147


Explain transaction server consistency?

1019


What is etl - extraction, transformation, and loading?

960


What is the xml datatype?

1123


When would you use sql joins?

1029


What are the export options of ssrs?

178


What is the datatype of rowid?

964


Explain the difference between cross join and full outer join?

1034