To enable statement pooling, set the driver MaxPooledStatements (or MaxStatements) connection property to a positive integer. For example, the following connection URL enables statement pooling for the SQL Server driver and sets the maximum number of pooled prepared statements for this connection to 20.