Sql variants and logging.