The TrendWorX64 Logger includes a new database dialog box for creating new SQL Server and SQL Server Express configuration databases. When you install TrendWorX64 some default databases are created for your use. However, you may wish to create additional databases for specific purposes or to run in multiple locations.
Right click the server node in the TrendWorX64 Logger navigation tree (called "localhost" by default), then select the New Database command from the context menu. Or, select the server node, then select the New database... command in the Edit group on the Home ribbon. The Create a new Database dialog box appears.
Under SQL connection Settings, select the SQL server from the provided list that contains the database to which you wish to connect the logger.
Enter a database name or select one from the list.
Tip: If newly-created SQL servers or database names do not appear in the respective lists within the dialog box, click the Refresh button to make them appear. |
Enable the Include sample data check box if you would like the selected database to contain data for testing the logger configuration.
Under File Size Settings, set the initial size of the database file in megabytes as well as the manner in which it grows when filled. You can specify the growth as an absolute amount in megabytes or as a percentage of the database size.
Enable the Restrict max size to check box to limit the size of the database file to a specific amount in megabytes.
Under Log File size settings, you can complete the same file size and growth configuration for log files as you did in steps 5 and 6 for database files.
Click OK to close the dialog box. The new database appears as an inactive database in the navigation tree. If the database does not appear within a few seconds, click the Refresh button, and the new database should then be displayed in the navigation tree.
Note: There are several reasons why a database may not be created. If you don't have sufficient user privileges to create the SQL Server database, or if you have specified a database name that does not exist, then an error will occur. Check the user account and its privileges in the SQL Sever Management application you use (such as SQL Server Management Studio Express), as well as the existence, correct name, and path to troubleshoot the issue.
|
Only one database can be active at a time. An active database has a database symbol with a white arrow in a green filled circle while an inactive database has a database symbol with a white square in a red filled circle .
Right click the name of an inactive database and select the Make Active command from the context menu. You can also select an inactive database and click the Make Active command in the Edit group on the Home ribbon. The database becomes active, and the database that was previously active becomes inactive.
When you attach a local database to TrendWorX64 Logger it appears in the TrendWorX64 Logger navigation tree where you can use it. You need to make the database active in order to work with that database. If you wish to move a database from one physical location to another, perhaps because it has run out of disk space, then you can make an active database inactive and disconnect it.
The act of connecting and disconnecting a database applies to local databases only. Since the the Workbench is a distributed web application what you see in the TrendWorX64 Logger navigation tree is populated by an IIS web service, which can be either local or remote. Similarly, the databases you see in the tree explorer can be either local or remote. Therefore you should connect and disconnect only the databases that you know are local, and you should be able to specify exactly the server and local database on which you wish to operate.
Warning. Disconnecting a database can cause your applications to stop running. Be certain that you want to perform this operation and that you are disconnecting and connecting the correct local databases.
|
Tip: If newly-created SQL servers or database names do not appear in the respective lists within the dialog box, click the Refresh button to make them appear. |
Note: You might see an error message appear indicating that the database is already on another server or does not exist. Check your current TrendWorX64 Logger configuration to ensure that the database does not already appear in the navigation tree, and make sure that you have created the local database before attempting to connect it to a server.
|
See also: