我正在使用SQL Server Express 2008 R2,并且我想将实例名称从“机器名称\ SQLEXPRESS2008R2”更改为“机器名称”。我跑了:sp_dropserver和sp_addserver不起作用
sp_dropserver 'old_name'
go
sp_addserver 'new_name', 'local'
go
然后重新启动SQL服务。现在当我看看
Select @@SERVERNAME --this is correct
但这不正确?
Select serverproperty('ServerName') --This still shows old name
所以,当我尝试通过SSMS连接到我的情况下我仍然有使用新的旧的实例名称isntead上我只是适用于连接?我究竟做错了什么?为什么这个新名字没有被使用?
感谢,
小号
我没想到你可以将命名实例更改为默认实例... – 2011-05-10 21:42:18
哦,是这个问题吗?我以为你可以这样做......这可能是问题所在。 – scarpacci 2011-05-10 22:01:07
之前你有没有读过[this](http://msdn.microsoft.com/en-us/library/ms143799.aspx)? – 2011-05-10 22:04:28