Connection.prepareStatement( )  SybConnection.prepareStatement( )

Chapter 4: Performance and Tuning

DYNAMIC_PREPARE connection property

DYNAMIC_PREPARE is a Boolean-valued connection property for enabling dynamic SQL prepared statements:

The default value for DYNAMIC_PREPARE is false.

In the following example, DYNAMIC_PREPARE is set to true to enable precompilation of dynamic SQL statements. In the example, props is a Properties object for specifying connection properties.

...
 props.put("DYNAMIC_PREPARE", "true")
 Connection conn = DriverManager.getConnection(url, props);

When DYNAMIC_PREPARE is set to true, note that:





Copyright © 2003. Sybase Inc. All rights reserved. SybConnection.prepareStatement( )

View this book as PDF