Skip to content
+1-888-319-3663

EONE BLOG

Tech Tuesday: Setup SmartConnect to use a Production and Test Database


A new feature on SmartConnect 2016 is the option to connect your SmartConnect install to two databases. During the initial install of SmartConnect the first database and SmartConnect user will be created for you. This article is not going to go through installing SmartConnect. Please refer to the installation documentation for these steps if needed. Once the install has completed you will be set to use SmartConnect with the primary database. On the SmartConnect Login screen you will be able to see in the dropdown the database that was created during the installation (server – Database Name). For this article I named my SmartConnect database during the installation as TechTuesdayProd. At the moment this will be the only database available to select.

To add a second database we need to create a new database and user on the SQL server manually.

Create a new Login on the SQL server first that you will want to use for the SmartConnect user on the second database. If you already have a SQL user setup that you would like to use you can skip this step. I am creating a new Login called TechTuesdayTest.

 

Create a new database that will be used for our second SmartConnect database. My second database will be named TechTuesdayTest. Be sure to make the new login we just created the Owner of this database.

 

Once the database and user have been setup on the server we need to configure SmartConnect to use the new database. Navigate to C:\Program Files (x86)\eOne Solutions\SmartConnect and launch eOne.SmartConnect.Config as an administrator. This is the SmartConnect Configuration which will allow us to setup SmartConnect to have access to both databases.

On the Production tab enter the information for the database that was setup during the SmartConnect installation and then click the Test Connection button. Once successfully connected we will need to choose the location of our WCF Web Config and Web Service Web Config. All the other settings will be automatically setup. By default the WCF Web Config path is C:\Program Files (x86)\eOne Solutions\wcf\web.config and the Web Service Web Config path is C:\Program Files (x86)\eOne Solutions\www\web.config.

On the Test tab enter the information for the database we manually setup on the server and click the Test Connection button to verify the credentials.

At this point we can click the Save Changes button to finish setting up SmartConnect to connect to two databases. When SmartConnect is launched at this point we will have the option to select which database to connect to.

Each database will need to be setup individually, have system maintenance ran and will need to be registered. Anything done in one database will not be available in the second database unless you export it out and then import it back in. One limitation you may run into is the web services will only work for one database at a time. This is controlled by the Use Production and Use Test checkboxes in the SmartConnect Configuration tool. If you want the web services to link up to your production database you would need to mark the Use Production check box (marked by default) and vice versa.

With this feature in place users can develop maps in a test SmartConnect database and not have to worry about changing anything with any live maps. Once the map is ready it can be imported into the production SmartConnect database and begin processing data.

4 Comments

  1. Brent Keilin on August 18, 2017 at 1:56 pm

    Hi Jared,

    Can this be done with the SmartConnect databases on two different SQL Servers?

    Thanks.

    Brent

  2. Lorren Zemke on August 24, 2017 at 1:33 pm

    Brent,

    Yes, the location of the second SmartConnect database doesn’t matter. Setting this up allows you to access both instances from the same machine. You just need to specify the correct settings on the Production tab and the Test Tab.

    Lorren

  3. @GP_Beat on June 20, 2018 at 5:02 pm

    This would be in Theory a wonderful (and very helpful) tool if only it would be able to read the existing eOne.SmartConnect.Setup.config file.. every time you launch the eOne.SmartConnect.Setup.exe tool, it opens up empty and you have to re-enter all the data.. making it literally useless.
    Since the data is encrypted in the .config file, you can’t even figure out where it’s pointing for PROD & TEST.. 🙁
    The User config guide says :
    One limitation is the web services will only work for one database at a time. This is
    controlled by the Use Production and Use Test checkboxes in the SmartConnect
    Configuration tool. For the web services to link up to the production database mark
    the Use Production check box (marked by default) and vice versa

    in the .config file, the switch is managed by the entry when it points to TEST.. Since you cannot re-read the .config file with the tool, you never know which environment is selected, unless you go into the .config file and check / switch it manually.. Kind of messy.

  4. Ryan on December 27, 2018 at 10:50 am

    > \”With this feature in place users can develop maps in a test SmartConnect database and not have to worry about changing anything with any live maps.\”

    Buyer beware… While it should be rather obvious, remember that this doesn\’t work well when there is scripting involved that has explicit assignment to data sources. Unable to find a more elegant solution for this besides a Global Variable \”IsProd\” and ensure it is leveraged across both test & prod and a step when refreshing test from prod. Another option is to simply change the data sources in the Maintenance tab so that the connection name may be identical (which may cause some confusion) but the actual server referenced must be changed in the test server.

Leave a Comment





RECENT POSTS


2021 Q4 Promotions
Connect with us at Directions EMEA 2021 in Milan!
eOne at Summit North America 2021
Employee Spotlight: Megan Tripp, Business Development Representative
eOne is now compatible with Microsoft Dynamics GP October 2021 Release

POPULAR POSTS


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
2017 SmartConnect Integration Bootcamps
New Releases of Extender and SmartList Builder

CATEGORIES

TAGS

Business Central CRM D365 Business Central Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News error Error Message Events Excel Excel Report Builder Extender Flexicoder GP integration Map Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Navigation List Builder Office Relationships partners Popdock release Reporting SalesForce SalesForce.com SmartConnect SmartConnect.com SmartConnect Bootcamp SmartConnect Maps SmartConnect Office Hours SmartList SmartList Builder SmartPost SmartView SQL Tech Tuesday Templates training

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.