How to: Rename a Computer that Hosts a Stand-Alone Instance of SQL Server 2005

1. For a renamed default instance, run the following procedures:
Get SQL SERVER NAME: select @@servername

sp_dropserver <old_name>
GO
sp_addserver <new_name>, local
GO
Restart the SQL Server instance.

2. For a renamed named instance, run the following procedures:
sp_dropserver <old_name\instancename>
GO
sp_addserver <new_name\instancename>, local
GO


Restart the SQL Server instance.

URL: http://msdn2.microsoft.com/en-us/library/ms143799.aspx

 

相关文章:

  • 2021-11-05
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-08-04
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2021-12-08
  • 2021-07-09
  • 2021-11-11
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案