且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL Server replication requires the actual server name to make a connection to the server.错误解决

更新时间:2022-09-05 22:30:09

今天,在作数据发库时,出现如下错误:

"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服务器改过名。

于是,按如下网址如教方法,更改名称,然后,解决问题。

http://www.hagrin.com/332/fixing-sql-server-replication-requires-actual-server-name-make-connection-server-error

SELECT @@SERVERNAME

先看清楚,名称是不是和现在的名称一样。

sp_dropserver 'old_server_name'
GO
sp_addserver 'current_computer_name', 'local'

GO 

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

然后,重启SQL,搞定之~~