sp_addserver (Transact-SQL)
SQL Server 2012
Defines the name of the local instance of SQL Server. When the computer hosting SQL Server is renamed, use sp_addserver to inform the instance of the SQL Server Database Engine of the new computer name. This procedure must be executed on all instances of the Database Engine hosted on the computer. The instance name of the Database Engine cannot be changed.
To set or clear server options, use sp_serveroption.
sp_addserver cannot be used inside a user-defined transaction.
Using sp_addserver to add a remote server is discontinued. Use sp_addlinkedserver instead.
