Error getting tags :
error 404Error getting tags :
error 404 revSetDatabaseDriverPath | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle
revSetDatabaseDriverPath driverFolder
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Specifies where the Database library should look for database drivers.

revSetDatabaseDriverPath "../drivers/"
revSetDatabaseDriverPath the defaultFolder

Additional Comments
Expander triangle

Use the revSetDatabaseDriverPath command if you want to place the database drivers your application uses somewhere other than the same folder as the application.


The driverFolder is the name and location of the folder where the database driver files are stored.


To use an external SQL database, the Database library needs to communicate via a database driver for the database you're using. By default, the Database library looks for drivers in the same folder as the application. If you try to work with the Database library, and the database driver is not where Revolution expects it to be, a script error will result.

If the database drivers your application needs are installed in a different folder, use the revSetDatabaseDriverPath command before you use any other commands or functions in the Database library, and before you display a field that you've set up to show data from a database (using the Database pane in the field's property inspector). Usually, the best place for this command is in your stack's startup or preOpenStack handler.

Important! The revSetDatabaseDriverPathcommand is part of the Database library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the General screen of the Standalone Application Settings window, make sure the "Database Support" checkbox is checked and the database drivers you are using are selected in the list of database drivers.

User Comments
Expander triangle