1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 【Vegas原创】如何配置 SQL Server 以允许远程连接

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

时间:2024-01-07 21:39:32

相关推荐

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

微软解决方案是:

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

2,启用 SQL Server Browser 服务;

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

具体步骤请参见:

/kb/914277/zh-cn

/kb/914277/zh-tw

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

比如:在dtpcdb02中,ping dtsdb01的ip地址是通的,但是ping dtsdb01的DNS则ping不通。

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

步骤:

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

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

#Copyright(c)1993-1999MicrosoftCorp.

#

#ThisisasampleHOSTSfileusedbyMicrosoftTCP/IPforWindows.

#

#ThisfilecontainsthemappingsofIPaddressestohostnames.Each

#entryshouldbekeptonanindividualline.TheIPaddressshould

#beplacedinthefirstcolumnfollowedbythecorrespondinghostname.

#TheIPaddressandthehostnameshouldbeseparatedbyatleastone

#space.

#

#Additionally,comments(suchasthese)maybeinsertedonindividual

#linesorfollowingthemachinenamedenotedbya'#'symbol.

#

#Forexample:

#

#102.54.94.#sourceserver

#38.25.63.#xclienthost

127.0.0.1localhost

10.91.50.46dtsdb01

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。