Frage

I am trying to configure sql alias in SharePoint farm. I have followed various articles about configuring it through cliconfg.exe and it looks fine. I have rebooted server and all the services.

When I go to system settings in central admin -> Servers in the farm , I still see sql server name and not alias name. I am basically trying to move my sql server to different machine and would like to make sure SharePoint is looking at alias name and not machine name to connect.

I have checked reg file too HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Server Extensions\15.0\Secure\ConfigDb and it is also pointing to my sql server and not alias name. Any idea how can i change it?

War es hilfreich?

Lösung

Your title is a bit misleading, as you're saying that you've already created the alias, and only want to rename the server in Central Admin. For that you use this command in PowerShell

Rename-SPServer -Identity "oldname" -Name "newname"

Or create alias so that

Alias Name = name of the old DB Server    
Server Name = name of the new server

Andere Tipps

What I am sure, You cannot change the SQL configuration once farm configured. The best way is try to rebuild the farm.

But, if try change the registry key. This can put you into an unsupported configuration.

If you want to move all database to new servers then i think the below article will solve your problem.

Move all databases in SharePoint 2013

TL;DR

With an SQL Alias, you create a pointer to the new SQL Server. That's why your Central Admin Page still thinks it's using MyOldDBServer. The alias lives in the Operation System and is not part of SharePoint. The same goes for any other Non-SharePoint-application on the same server. The alias takes control of where the Database Server is - regardless of what the application says. Thats't the beauty of it.


When you add an SQL Alias to your server hosting Central Admin, you need to move ALL the databases to the new storage (provided that they are using the same database server)

The SQL Alias has nothing to do with the SQL Sever. It is a server feature where you point all your application to a different SQL Server. Not just SharePoint. What yoo do is that you tell the Server OS that MyOldDBServer from now on is located at MyNewDBServer. You don't have to change anything within applications; SharePoint or any other. SharePoint and other apps, still belive that they are communicating with MyOldDBServer.

Try the following CMD command on your computer:

  • Run CLICONFG (on windows 7)
  • Start Screen type CLICONFG (on Windows 8)

And you see this dialogue:

enter image description here

And you add the alias on the Alias tab:

enter image description here

That's it!

Well almost, backup the databases and then you have to shut down SharePoint through the action of disable services and stop the ISS before adding your SQL Alias. But that part you already know. If not - follow Todds blgg Moving SharePoint to a different SQL server.

Since you are doing this post installation of the farm, launch SharePoint 2013 Products Configuration Wizard again and configure your SharePoint farm with the new SQL Alias.

Why not simply reuse the name of the original SQL server as the alias to the new SQL server? For example, if your farm is pointing to "SERVER1", then shutdown all the SharePoint and IIS services on each server, and then create a SQL client alias on each server in the farm for "SERVER1" that now point to your new SQL Server "SQLSERVER2".

Of course, you'll need to move all the logins, databases, etc. to the new SQL Server and test to make sure everything works as expected.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top