SQL Server replication requires the actual server name?

  • Post author:
  • Post category:
  • Post comments:0 Comments
  • Post last modified:November 9, 2007

서버 이름이 복잡하게 되어 있어서 간단하게 바꾸었다. [제어판/시스템/컴퓨터 이름]을 TEST-13으로 바꾸고 나서 트랜잭션 복제를 구성하려 했더니, 이상한 오류 메시지가 떴다.

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.
Specify the actual server name, ‘oldSQLServerName’, (Replication.Utilities)

한글로는 실제 컴퓨터 이름이 필요합니다 정도의 메시지가 나왔던 것 같다. 이 문제는 이렇게 해결하면 된다.

USE master
GO

-- 예전 서버 이름을 확인한다.
SELECT @@SERVERNAME

-- 예전 서버 이름을 버린다.
EXEC sp_dropserver 'Old Server Name', 'droplogins'
GO

-- 새 서버 이름을 등록한다.
EXEC sp_addserver 'New Server Name', 'local'
GO
Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments