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    ---------------------------

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.

NAV 2013 Upgrade Part III - Data Upgrading.

Hi all, As per agenda we need to discuss the data upgrade in NAV 2013. The process is similar to what used to be till NAV 2009 R2 but with some changes. Let's start the process. Remember -  1) You can only upgrade a database to NAV 2013 from NAV 2009 SP1 / R2 SQL Only. 2) The Synchronization of users with SQL Server is no more required.