C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to get the length of a string in SQL Server


Posted Date: 04 Mar 2008    Resource Type: Code Snippets    Category: SQL

Posted By: Ashwini Rupert       Member Level: Diamond
Rating:     Points: 10



This code sample shows how to use the LEN function in SQL Server to get the lenght of a string column.



USE DATABASE

SELECT column1, LEN(column1)
FROM tablename





Responses

Author: andy robarts    28 Apr 2008Member Level: Gold   Points : 2
select length() from where ;


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Column Aliases
Previous Resource: How to get current date in SQL Server
Return to Discussion Resource Index
Post New Resource
Category: SQL


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing

Contact Us    Privacy Policy    Terms Of Use