您的位置:首页 > 数据库

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

2008-01-10 09:41 323 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐