Skip to main content

NAV 2013 R2 - Configure a Shortcut to point a Specific Database.

Hi all,

Consider a scenario where your client have two database -

a) Live Database. (Hosted on Port No. 7046)
b) Test Database. (Hosted on Port No. 10046)

Now Client wants to have two shortcuts on User Desktop which should point to Live and Test Database Respectively. User does not require to Select Server and change the database.

Question 1 - HOW RTC CLIENT POINTS TO DATABASE ?

- When you click on Windows Client,by Default it tries to connect to Last Successfully Connected database Service.



Question 2 - How it Does This ?

- The information about last successfully connected database service is stored in User Folder of your computer. RTC Clients reads that file and connect to the database.

Question 3 - Can we Change that File?

YES

Question 4 - Can we bound the RTC Shortcut to use a specific configuration file?

YES

Let's See answer of all the Questions that we have in Mind.

- The Configuration file that client use to connect to service is stored at -
C:\Users\<User Name>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\71

- File Name - ClientUserSettings.config

- The Configuration file Look like as shown below.



Let's see how can i make a RTC shortcut to point a Other configuration file than standard.

- Copy the configuration file from C:\Users\<User Name>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\71 to Say D Drive and Rename it to any name you want or keep it as it is. (I am keeping the file name as same)

- But i change some parameters like service port number, service name so that my shortcut points to a different database.



- Create a shortcut at desktop.

- Go to Properties of that shortcut.

- In Target Window you will see something like this (Default Path of Client) -

"C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe"

- Just Add following Line after the End of Target -
 -settings:"d:\ClientUserSettings.config"

- Your complete Path in Target should be Like -
"C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"d:\ClientUserSettings.config"

Hit Apply and Ok.

Now whenever you click on the Shortcut and if service is running fine, it will point to the database as per your configuration file in D Drive.

I hope you will be able to create as many shortcuts as you want.

Regards,
Saurav Dhyani
saurav-nav.blogspot.in

Comments

  1. Hi Saurav,

    Can we point the shortcuts to two different company in a same database

    ReplyDelete

Post a Comment

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.