When we used to toupper or tolower, it doesn't work in mssql as it will be converted to ucase and lcase instead of upper or lower for MSSQL.