web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Why must port 445 be opened in SQL during installation or rollup upgrades

(0) ShareShare
ReportReport
Posted on by 66

Why must port 445 be opened in SQL during installation or rollup upgrades? Is there a specific reason why it should be opened only during installation as it is related to the Database? Normally this port is used by SMB and "shared folders" thus making it prone to attacks.  

I have the same question (0)
  • Suggested answer
    SS-01100907-0 Profile Picture
    on at

    Hi,

    Yes, Port 445 (Microsot-DS) should be open between the SQL and CRM Servers for Actve Directory Access and Authentication.

    As you can see the default connectivity requirements for an on-premises deployment below, Port 445 is mandatory for Server to Server (CRM, SQL, SSRS) communications.

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2013/white-papers/dn683916(v=crm.6)?redirectedfrom=MSDN


    Thanks,

    Soumen

  • anifarap Profile Picture
    66 on at

    thanks for the reply. Would you be able to help to elaborate more on Active Directory Access and Authentication to Database? I understand this port is not required during normal operation of CRM and this port is only used during installation, New Organization, Import and Rollup Upgrades. I would just like to understand why is it such as the description "Active Directory Access and Authentication" does not give much detail into it. Thanks!

  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    As you said, 445 is used for SMB and for D365 installation Microsoft uses it to copy template database file on SQL Server using a UNC path.

    An extract from docs:

    "Active Directory service required for Active Directory access and authentication. This is used by Server Message Block (SMB) during organization creation to create a 'template database' from the installation location on the Dynamics 365 Server to a UNC path on the SQL server."

    I hope this answers your question.

    Best,

    Wahaj

    (if it helps, mark it verified)

  • anifarap Profile Picture
    66 on at

    Thanks, so it means that during installation CRM is actually using the SMB to copy over the "template database" to the SQL Server. I did check the CRM installation folder and it does have an mdf file inside some sql folder called msxrm9.mdf. This may be the "template database" which is being described.

  • Wahaj Rashid Profile Picture
    11,321 on at

    It is my pleasure :)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans