Best Practices > Parametrize Database Connection Information

Parametrize Database Connection Information

Article #: Product: Version:

Summary

Using environment variables to parametrize database connections in DMExpress is recommended as a best practice to make the application portable and easier to maintain.

Resolution

Environment variables can be used to specify the following settings in the Database Connection dialog:

The referenced environment variables must be set to the appropriate values at both design and run time to successfully connect to the desired database.

Parametrizing the database connection information provides the following advantages:

In both cases, you simply change the values of the referenced environment variables.

For more information on defining and exporting environment variables, see the "Environment Variables tab" section of the DMExpress Help topic "DMExpress Server dialog".

Last updated: