SQL2005 The default port modification method _mssql2005

Source: Internet
Author: User
Tags microsoft sql server mssql

1. Firewall in the exception to open the 1433 port and SQL Server program (C:\Program Files\Microsoft SQL Server\mssql.1\mssql\binn\sqlservr.exe)

2. Enable the TCP/IP protocol under the Protocol of the SQLSERVER2005---Configuration tool----SQL Server Configuration manager-sql2005 network configuration--mssqlserver. Restart all services for SQL Server

The default TCP port for

1, default port
SQL Server is the 1433,UDP port is 1434. 2005 Connection character string is
Provider=sqlncli.1; Persist Security info=true; User id=****; Password=**;initial catalog=tablename;data source= ' http://www.qichepeijian.com '
2, change port to: 3533
if server TCP port is changed to another port, then the client configuration tools You need to do the following :
program ->microsoft SQL server 2005- > Configuration Tool->sql Server Configration manage, as shown in the following figure:

Select the SQLExpress protocol in the network configuration as shown in the following illustration:

In the properties on the right side of TCP/IP, the contents of the Protocol dialog box are set as follows:

The IP Address dialog box is set in the following example

The address in IP2 is set to the IP address of the client and the port is changed to the port developed by server-side SQL Server.



to set the port for the client's protocol, the interface is shown below

in the Protocol window that pops up, change the default port, as shown in the following figure.

After all the settings are complete, restart the SQLExpress service.


to complete the client port changes as described above, database connection string should also make the appropriate changes, or you can not connect to hit data Library.
Provider=sqlncli.1; Persist Security info=true; User id=****; Password=**;initial catalog=tablename;data source=202.000.000.000,3533.

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.