select top 1 with ties LogsID, len(Location), Locationfrom [LOGS]order by len(Location) desc
select max(datalength(YourColumn)) as YourColumnLength, max(datalength(MyColumn)) as MyColumnLength from YourTable