If you are using your pc to run Dynamics NAV 2009 then often you would like to access more than one database without changing the CustomSettings.config file.In the old classic client it was possible just change the database or the server from the client. But with the Role Tailored clientthis requires that you're setting up a second service, or basically a different service for each database you want to access.
Before you can start to use the second service, you must create a name for the new server instance. He must also activate port sharing so that multiple clients can share the same port number.To create a name for the server instance
It is also possible to use "Net.Tcp Port Sharing Service" (as described by Microsoft in their installation documentation), but if you're just setting this up on your own pc, then I have found the above method much easier.NOTE: This method is only for test/development setups. Never use this method to install a production environment on en end-user site. Due to both performance and security you should refer to the guidelines from Microsoft whenever working with production sites.
Make sure to include a space after every single option value in the SC command. a binpath parameter of
binpath= "C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2"
works where as
binpath="C:\Program Files\Microsoft Dynamics NAV\60\Service2\Microsoft.Dynamics.Nav.Server.exe $NAV2"
will simply return the command help text back to you with no indication as to what you did wrong.
That should have been: include a space after the equals operator in every single option but before the value. Hasty typing on my part :$