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.