Attention: We are retiring the ASP.NET Community Blogs. Learn more >

关于远程连接SQL SERVER 2005 !!

 

如果有FIRE WALL 开启, 首先是一些基本必须熟知的设置:

1      Surface Area Configuration :   Local and Remote Connections..

2      Firewall exception list :

      Sql server instance  exe   /    Sql  Server Browser 

以上这些基本上没什么问题的。。

关键是下面这一点,一定要设置!! 否则远程就无论如何也连不上! 

譬如系统安装了一个名为   SQL2005 的  INSTANCE ,  则需要:

Sql Server Configuration Manager -> SQL Server 2005 Network Configuration -> Protocols for Sql 2005

 ->  TCP/IP ( Enabled ) ->   IP Addresses ( Tab ) ->  TCP ALL ->

 Set "TCP Port" as "1433" !!!

另外重要的一点!如果远程服务器上只安装了一个 SQL 实例,那么即使这个实例有名字(例如 SQL2005 ),那么远程连接的时候,在目前的这种设置下,服务器字符一定不要加实例名,否则连不上!

例如,不要写成 XX.XX.XX.XX\SQL2005 ,   一定要只写成  XX.XX.XX.XX 即可!

7 Comments

Comments have been disabled for this content.