TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Get number of characters using DataLength
Karthikeyan Anbarasan
Jun 15, 2011
2.9
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Get number of characters using DataLength
This blog shows how to use the DataLength function to get the number of Unicode characters of a string using SQL.
Example:
SELECT DATALENGTH(N'This is a sample lenght to check')
The expected output would be 68
SQL Server Transact Basic to Expert - Get number of characters using DataLength
Next Recommended Reading
SQL Server Transact Basic to Expert - Get number of busy CPU milliseconds count created in SQL