DbConnect User Interface

In this topic: Hide

 

The Db Connect user interface consists of a single interface where you enter all of the information that CM4D requires to connect to a database.

Tip
Double clicking in any of the dropdown fields will toggle the menu options.

Connections

The Connections section lists the database connections that are included in the selected 4ds file.

If you are using the Connection Type CM4D Connection(s), multiple unmanaged DataSource connections may be created and saved within the CM4D.4ds file.

New Connections

Create a New Connection

Copy an Existing Connection

Delete Connections

Move Up/Move Down

Connection Type

The Connection Type Site/CM4D indicates the type of database to which you are configuring this connection.

·        Site Connection - connect to a managed Site Database. This type only allows you to connect to a single Site database at one time.

·        CM4D Connection(s) - connect to one or more unmanaged CM4D Databases. This type allows you to connect to one or more unmanaged database at one time. See the Connections section above for more information.

Connection Location

The Connection Location .4ds is the path to your CM4D.4ds file. By default, this points to the CM4D installation folder.

When running a CM4D module, the application will first search the Installation folder for the CM4D.4ds file. If one does not exist there, it will next look in the default install folder (C:\Program Files\Applied Tech Systems\CM4D). If a CM4D.4ds file does not exist there either, then one will be created in that folder.

Command Line Parameters

Connection Info

The Connection Info section includes all of your database information.

·        Label - enter a unique Connection Label to assign your Database connection. This label is what is displayed in the Connections section, and can be the same as the database name or something more recognizable. For unmanaged CM4D Connections, this is the DataSource Label that is used within the CM4D applications when selecting a database.

·        Server Name - enter the name of the computer on which the database system is installed; if you are using a named instance (which is always the case when using SQLExpress), the server name format must be: servername\instancename

·        Database Name - enter the database label as it appears in SQL Server. For Site connections, this is the name of the Site database. For unmanaged databases, this is the name of the CM4D database.

·        Database User ID - enter the SQL user that will be used to authenticate the database connection; only required when the Connection Type is set to False.

·        Database Password - type the password for the SQL user.

·        Confirm Password - retype the password exactly as entered in the Database Password field.

Test Connection

To test whether or not you have made a successful connection to your database, click Test Connection.

·        If a Successful Site DB connection has been made, click OK.

·        If you receive errors, click OK. Troubleshoot the problem based on the error message, then test again.

§        Failed connection - check that your connect information was entered correctly, that the database server is running, or that your user ID has permissions to access that database.

§        Wrong Schema - Site database must be upgraded to the correct Schema.

§        Wrong Connection Type - The database you are connecting to is an unmanaged CM4D database. Change your connection information to point to the correct managed Site database, or change the Connection Type of your 4ds to CM4D Connection(s).