天天看點

SQL Server replication requires the actual server name to make a connection to the server.錯誤解決

今天,在作資料發庫時,出現如下錯誤:

"sql server replication requires the actual server name to make a connection to the server. connections through a server alias, ip address, or any other alternate name are not supported."

SQL Server replication requires the actual server name to make a connection to the server.錯誤解決

回想起來,這個sql伺服器改過名。

于是,按如下網址如教方法,更改名稱,然後,解決問題。

<a href="http://www.hagrin.com/332/fixing-sql-server-replication-requires-actual-server-name-make-connection-server-error">http://www.hagrin.com/332/fixing-sql-server-replication-requires-actual-server-name-make-connection-server-error</a>

select @@servername

先看清楚,名稱是不是和現在的名稱一樣。

sp_dropserver 'old_server_name'

go

sp_addserver 'current_computer_name', 'local'

go 

如果不是,去掉老名字,換成新名字。

然後,重新開機sql,搞定之~~