ODBC Driver for Databricks

Build 25.0.9434

AllowPreparedStatement

Specifies whether the provider prepares SQL statements before executing them to improve performance on repeated queries.

Data Type

bool

Default Value

true

Remarks

Prepared statements precompile SQL queries so they can be executed multiple times without being re-parsed or recompiled.

When this property is set to true, the driver prepares and caches SQL statements before execution. This reduces parsing and compilation overhead for queries that run multiple times.

When this property is set to false, statements are parsed and executed each time without precompilation. This can improve performance when running many unique or one-time queries.

Prepared statements require the driver to maintain an active connection while the statement is prepared.

This property is useful for tuning performance based on whether your workloads reuse queries or generate new SQL dynamically.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434