Application & System: Development / Integration / Orchestration
Max Length Of Data In Column
Posted on
By David Kittell
Get Max Length Of Column
SELECT max(length(<col>))
FROM <TABLE>;
SELECT max(len(<col>))
FROM <TABLE>;
Originally Posted on November 1, 2013 Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.
Sometimes we need to compare lists in Excel, this function will assist in getting a clean comparison. NOTE: It is best when comparing that all columns are same format (ie. Text, Number, etc.) =IF(ISERROR(VLOOKUP(A1,Sheet1!$A$1:$A$3,1,FALSE)),"MISSING FROM OTHER SHEET","") ‘ OR =IF(ISERROR(VLOOKUP(A1,Sheet1!$A:A,1,FALSE)),"No","Yes") Going one step further, if you find a match and…
In order for PowerShell to run scripts you need to grant it specific permissions. Restricted No scripts can be run. Windows PowerShell can be used only in interactive mode. AllSigned Only scripts signed by a trusted publisher can be run. RemoteSigned Downloaded scripts must be signed by a trusted publisher…
This script will search and replace specific content/phrases through the entire content table. This script can be modified to handle different scenarios as well. /* search/replace script to replace characters in the content fields of the content_text and content_teaser fields  = *space* €“ = — €™ = ‘ €¢…