added SQL dialect detection and SQL server concatenation char