Setting connection caching properties, options, and database context

The connection’s server name, user name, and password are fixed when a cache is established. However, you can change other connection properties dynamically when the connection is opened.

Follow these guidelines to avoid problems with inconsistent connection state: