【Vegas原创】如何配置 SQL Server 2005 以允许远程连接

本文提供了解决SQL Server连接问题的微软官方方案,包括配置TCP/IP连接、启用SQL Server浏览器服务及设置防火墙例外等步骤。若问题依旧存在,则需在各主机的hosts文件中手动添加对方IP地址与主机名映射。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

微软解决方案是:

1, SQL Server 2005 外围应用配置器上配置本地连接和远程连接为tcp/ip方式及name Pipes

2, 启用 SQL Server Browser 服务;

3,  Windows 防火墙中创建例外.

具体步骤请参见:

     http://support.microsoft.com/kb/914277/zh-cn

     http://support.microsoft.com/kb/914277/zh-tw    

 

如果以上方法还不行的话,就是因为ipsec指派了之后,DB ADB B不能相互解析到自己的主机名称,所以造成复写写不进去。

比如:在dtpcdb02中,ping dtsdb01ip地址是通的,但是ping dtsdb01DNSping不通。

 

终极解决方案:在两台机器的host上加上对方的ip地址和名称。

步骤:

1, 搜索hosts文件:C:\windows\system32\drivers\etc\hosts;

2, 用记事本打开,按下面进行添加。

 

# Copyright (c)  1993 - 1999  Microsoft Corp.
#
# This 
is  a sample HOSTS  file  used  by  Microsoft TCP / IP  for  Windows.
#
# This 
file   contains  the mappings  of  IP addresses  to  host names. Each
# entry should be kept 
on  an individual line. The IP address should
# be placed 
in  the first  column  followed  by  the corresponding host name.
# The IP address 
and  the host name should be separated  by  at least one
space .
#
# Additionally, comments (such 
as  these) may be inserted  on  individual
# lines 
or  following the machine name denoted  by  a  ' # '  symbol.
#
For  example:
#
#      
102.54 . 94.97      rhino.acme.com          # source server
#       
38.25 . 63.10      x.acme.com              # x client host

127.0 . 0.1        localhost
10.91.50.46     dtsdb01

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值