SQL DATALENGTH Functionby Pradeep RaturiSQL Basics, String FunctionsSQL DATALENGTH() function is used to return the number of bytes used to represent a given string. Share this:Click to share on Facebook (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to share on Reddit (Opens in new window)