public override void VisitIfTempTableExists(StatementIfTempTableExists statementIfTempTableExists) { var tableName = TSqlExporter.Default.ToSql(statementIfTempTableExists.Table); tableName = "tempdb.." + tableName; var condition = SqQueryBuilder.IsNotNull(new ExprScalarFunction(null, new ExprFunctionName(true, "OBJECT_ID"), new[] { SqQueryBuilder.Literal(tableName) })); new StatementIf(condition, statementIfTempTableExists.Statements, statementIfTempTableExists.ElseStatements).Accept(this); }