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

Can you please differentiate between a primary key and a unique key?

954


What are the database roles? : sql server security

1077


What is "scheduled jobs" or "scheduled tasks"?

915


How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?

962


How is table type constraint applied to a table?

936


What is 'Join' and explain its various types.

1067


What are the restrictions applicable while creating views? : SQL Server Architecture

981


how many bits ip address consist of? : Sql server database administration

849


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

932


How to insert a new row into a table with "insert into" statements in ms sql server?

915


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

162


Explain sql delete command?

1005


Does partitioning ssd reduce performance?

849


What is a database in ms sql server?

995


How to create a new schema in a database?

1075