Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Connecting to separate instance of DB on different port

(0) ShareShare
ReportReport
Posted on by 147

Hello,

I am wondering how to connect to a separate instance of a database running on the same server but on a different port. While I can go to the solomon.ini file and change the database, using a comma (for the port) will be read as a separate server. Similarly, using the \ isn't handled correctly. Essentially, I've setup two instances of SQL Server on a server (a test and  a dev). For a variety of reasons, I cannot setup another server for one of them but have to use the same server with separate instances (and preferably on a non-standard port). I can connect to the base one from dynamics, but not  the other. Thanks.

  • Suggested answer
    Erich Strelow F Profile Picture
    16 on at
    RE: Connecting to separate instance of DB on different port

    I don't think there is a way to set the port on SL level. 

    But, you could setup different SQL server alias for test and dev. Check https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/create-or-delete-a-server-alias-for-use-by-a-client?view=sql-server-ver15 

    Dynamics SL is pretty much hard wired to SQL Server, so there's no "Connection String" concept whatsoever. The SQL Server Alias gizmo sort of fills the gap to allow certain flexibility. Since it works at client level, you must define the alias in all the users endpoints. Use with care, since this is the kind of settings that mess up future network diagnostics.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans