GUACAMOLE-870: Merge changes using CHARINDEX() instead of POSITION() for SQL Server.

SQL Server does not support the ANSI SQL POSITION() function, instead providing its own non-standard equivalent: CHARINDEX().