SQL alias updatiion in ShareePoint server

sns 9,251 Reputation points
2023-03-02T18:40:22.93+00:00

I have seen DBSP2016TST as DB server name in the servers in the farm section from system settings

and I have seen above DB server name as SQL alias when I have navigated to C:/WIndows/system32/cliconfig.exe and below is the screenshot of SQL alias in the WFE server I have noticed

User's image

Now server name for above SQL alias is GS1015 and it has instance having 65 databases , which they are planning to move new SharePoint SQL instance which is GS1020.

Plan is backup and restore to new server instance. For some reason ( might be huge size) SQL team is planning db backup from old instance and restore instance.

Now it will be great help for me to if you could clarify below questions

  1. After changing to new SQL server(GS1020), what is the new SQL alias and who will give?
  2. After I got new SQL alias, I believe i have to update in the above screenshot area, if so I should remove existing alias and add new one? or edit existing one?
  3. In the screenshot, who will give connection parameter?
  4. Can we keep old and new alias both in the above screenshot, as they are planning daily 10 database backups and restore to new SQL instances? or is it better changing alias only after all db migration is over?
  5. In what are places we need to change, do we need to change in all SharePoint servers manually in the above screenshot area? and after doing this , do we need to mount each db with new SQL alias?
  6. Before backup DB team will keep Database offline, so during this time I believe sites are not accessible, what is the error it will give when try to browse the site?

as per db team one database will take 4 to 6 hours for backup and restore , can I consider it as down time.

I have gone through below 2 blogs to understand better, but not much clear for me and left with above 7 doubts. Please clarify, thank you

https://www.sharepointdiary.com/2012/11/create-sql-server-alias-for-sharepoint.htmlhttps://regroove.ca/archive/2013/11/03/setting-up-a-sql-server-alias-with-sharepoint-server-2013/

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

Answer accepted by question author
  1. Xyza Xue_MSFT 30,241 Reputation points Microsoft External Staff
    2023-03-03T07:39:15.3833333+00:00

    Hi @sns ,

    You can edit an existing alias, GS1020 will give connection parameter. You can keep old and new alias both in the above screenshot. SQL Alias to be set on All SharePoint Servers except DB Server (SQL Server!) You need to change in all SharePoint servers manually except DB Server (SQL Server!) We cannot access the site when the Database is offline. The error screenshot is as shown below. When the database is backed up and restored, you can consider it as down time.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.