Connecting Microvellum to an SQL Database (Unified Work Order Database)(Tutorial 3)

Connecting Microvellum to an SQL Database (Unified Work Order Database)(Tutorial 3)

This is the third in a series of tutorials presenting the steps necessary to install and configure a new SQL Server database to work within Microvellum. It focuses on how to configure Microvellum to connect to the new SQL Server databases you have already configured.  

Click  here  to view the second tutorial in the series. 

By now, you have installed a new SQL Server database instance. You have also configured that new server with two new databases, set up the necessary logins giving access to those databases, mapped those user logins to the appropriate databases, and set the role memberships for the user logins.

After creating the server databases, follow the step below to configure the Microvellum Software to connect to those databases. We recommend that you create a new configuration that connects to your new SQL Server databases instead of modifying a single existing SQL CE configuration. If you are modifying a single existing configuration, begin with Step 2 below.
  1. Open Toolbox and click the button for “Manage Configurations” when the startup login screen displays. Click the button for the preferred method of creating another configuration from the buttons there. For most Users, the Copy command will be the best option. Click here for more information about the Configuration Manager.
    1. Alternatively, if Toolbox is already open, click “Toolbox Setup > Copy Configuration” to copy an existing configuration to create a new configuration that you intend to set up as the new Unified Work Order Database (UWOD) configuration. If you already have one set up, select that configuration at the program startup screen.
  2. With Toolbox open, click “Toolbox Setup > Options > Data Access” and click the option button for “SQL Server.” This activates the Data Source and Data Catalog drop-down list boxes. The Data Source is the name of the server in which the databases reside. The Data Catalog is the database name.
  3. The Data Source name for the Work Order Connection may differ from the Factory Connection Data Source without causing an issue. You establish the Data Source name during the creation of the SQL Server instance. You establish the Data Catalog name during the creation of the database. Figure 1 shows the database structure in SQL Server Management Studio that you previously configured.

In Figure 1, you see the three databases previously set up in the SQL Server Management Studio. The factory database is named “Imperial_049_0_UnifiedWODatabase.” The two work order databases are named “MicrovellumGeometry” and “MicrovellumWorkOrder.” 


Fig. 1

  1. Configure the factory database connection if necessary. If you are configuring the UWOD functionality and previously your factory database connection was of the type SQL Server, you will not need to change the settings in the Factory Authentication and Factory Connection sections. If you already have a SQL Server factory database connection, skip to Step 5.
    1. If you are configuring the UWOD and previously your factory connection was of the type SQL CE, complete the section “Factory Authentication” by clicking the options button for the type of login that you set up when you configured the SQL Server databases logins.
    2. Drop down the list boxes for Data Source and Data Catalog and select the server name and database name that you created when you configured the server and factory database. You create these components using SQL Server in previous tutorials in this series and simply connect to them here. For example, see Figure 2.
    3. Do not click the Close button until you have tested the factory connection, as described in Step 5.

    4. Fig. 2

      Authentication functions through either Windows authentication or SQL Server authentication based on the server login configurations. If the authentication type is unknown, please refer to your IT department for more information. The factory database authentication and the work order authentication do not need to be the same. Still, the authentication for both work order databases (work order and geometry) must be identical.
  1. Configure the Work Order database connection.
    1. In the section “Work Order Authentication,” click the options button for the type of login you configured when you configured the SQL Server database logins. 
    2. Complete the Work Order Connection section with the Data Source name you set up when you configured the SQL Server databases. 
    3. From the drop-down list boxes for Data Catalog (Work Order), and Data Catalog (Geometry), select the matching names you created when you configured the databases. 
    4. For example, see Figure 3. 
    5. Do not click the Close button until you have tested the work order connections, as described in Step 5. 

    6. Fig. 3
  1. Test each connection type to verify that everything has been set up correctly up until this point. 
    1. If the authentication or connection information is correct and Microvellum successfully connects but no data exists inside of the databases, the following message will appear, “Could Not Read Tables in Catalog.” 

    2. Fig. 4

    3. If the authentication or connection information is incorrect, the following message will appear, “Error: Cannot open database <database name> requested by the login. The login failed.” 

    4. Fig. 5

      As explained above, the buttons for testing the database connections (Test Factory Connection, Test Work Order Connection, and Test Geometry Connection) will generate messages until after you transfer data to the new databases.
  1. Correct any errors before completing the configuration of your Unified Work Order Database. Before starting Toolbox and selecting this configuration, you still need to transfer data to the SQL Server databases you configured. 
Click  here for the final article in this series that discusses transferring your data to the Unified Work Order Database on your SQL Server.

    • Related Articles

    • Unified Work Order Database - UWOD (Overview)

      Before build 15.6, the only option for ‘database type’ when working with work order databases was for each work order folder to contain its own standalone work order database. These discrete databases were SQL CE database files located on the local ...
    • Transferring Data to an SQL Server Database (Unified Work Order Database)(Tutorial 4)

      This is the fourth in a series of tutorials presenting the steps necessary to install and configure a new SQL Server database to work within Microvellum. It focuses on how to transfer data to new SQL Server databases. Click here to view the third ...
    • Configuring an SQL Express Database (Tutorial 2)

      This is the second in a series of tutorials presenting the steps necessary to install and configure SQL Server to work with Microvellum. This tutorial focuses on the concluding steps when configuring the new database instance you created previously ...
    • Installing SQL Server Express Edition (Tutorial 1)

      This is the first in a series of tutorials presenting the steps necessary to install and configure a new database. Later tutorials will present the steps to configure the SQL Server database instance to work with Microvellum.  We recommend the ...
    • Creating a Local Sandbox from an SQL Server Configuration Guide

      This document explains the steps required to configure a local sandbox from an SQL server. For additional information about what a “sandbox” is and when to use one click here. Prior to creating a sandbox environment, we strongly recommend the user ...
    • Recent Articles

    • Toolbox Release Notes | Build 24.1.1206.641

      The following release notes apply to Toolbox build 24.1.1206.641 MV Server Nesting Fix There was a reported issue occurring when users attempted to remotely process work orders using a nesting station on MV Server. When attempting to process the work ...
    • Microvellum Foundation Library Release Notes | Build 24.1127

      The following release notes apply to Microvellum Foundation Library build 24.1127. Additions Added a new Soffit product to the Upper Cabinet Accessories category. Added the Top Filler (Ceiling Scribe) option to Upper and Tall cabinets. (Corner ...
    • Toolbox Release Notes | Build 24.1.1125.641

      The following release notes apply to Toolbox build 24.1.1125.641. IRIB Setmill Location Fix Fig. 1: Setmill being moved to the start of the route (top) rather than at the center of a straight line, as intended (bottom). There was an issue reportedly ...
    • Toolbox Release Notes | Build 24.1.1105.641

      The following release notes apply to Toolbox build 24.1.1105.641 Nesting Fix Fig. 1: The fatal error that would occur during processing. There was reportedly an issue that occurred when clients attempted to process a work order using the nesting ...
    • Microvellum Foundation Library Release Notes | Build 24.1025

      The following release notes apply to Microvellum Foundation Library build 24.1025. Additions Added new global variable “Remove Stop Dado On Bottom Edge” for wood drawer boxes. Check this option to run the dado through at the bottom of the sub front ...