Replace CHAR_LENGTH MySQL commands with LEN MSSQL commands