SQL Server named instance change port for publish subscription

Source: Internet
Author: User
Tags mssql

Original: SQL Server named instance change port for publish subscription

Two database servers, none joined the domain, all installed multiple instances, the port is not the same. Now using a named instance for replication, tossing a long time, only to find a solution.


Server A:myservera
MSSQL named instance: Mymssql
MSSQL Port: 14433

Server B:myserverb
MSSQL named instance: Mymssql
MSSQL Port: 14433


Normal Connection Database method: myservera\mymssql,14433

However, when you create a publication subscription, you cannot connect to both database errors!



Try some of the methods are unsuccessful:

Bind IP and computer;

Change the port to the default 1433;

Create an instance alias for the computer name;

(Other minor changes .....) )


Final Workaround:

Create a database alias in Configuration Manager! Requirements are as follows:


1, create the other's database alias in the current server;

2, the database alias needs to add the instance name, such as Myserverb\mymssql;

3, when creating a publication subscription, connect to SSMS as the server name \ instance name ;


For example, creating a database alias on the myservera server, similarly creating an alias on the myserverb server.





SQL Server named instance change port for publish subscription

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.