2010年11月19日 星期五

在win2008上面安裝sql2008後注意事項

如果安裝了win2008及sql2008之後,發現ap無法連到sql這台主機的sql服務,請注意以下幾點:

1、防火牆(依網頁上面來執行開啟就好,不用再手動設定防火牆了):http://support.microsoft.com/kb/968872/zh-tw

2、檢查sql主機的sql組態設定,確定所有的服務都有開(今天裝的主機就沒開)

A. 連線設定:via不要開,其它全開

B. SQL browser的服務要開。


Note:手動將SqlServer防火牆打開


1.將SQLSERVER程式手動加入允許清單



2.將以下指令做成批次檔(OpenSqlServerPort.bat)執行:

@echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
netsh firewall set portopening TCP 1433 "SQLServer"
@echo Enabling Dedicated Admin Connection port 1434
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
@echo Enabling conventional SQL Server Service Broker port 4022
netsh firewall set portopening TCP 4022 "SQL Service Broker"
@echo Enabling Transact-SQL Debugger/RPC port 135
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
@echo ========= Analysis Services Ports ==============
@echo Enabling SSAS Default Instance port 2383
netsh firewall set portopening TCP 2383 "Analysis Services"
@echo Enabling SQL Server Browser Service port 2382
netsh firewall set portopening TCP 2382 "SQL Browser"
@echo ========= Misc Applications ==============
@echo Enabling HTTP port 80
netsh firewall set portopening TCP 80 "HTTP"
@echo Enabling SSL port 443
netsh firewall set portopening TCP 443 "SSL"
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh firewall set portopening UDP 1434 "SQL Browser"
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLE

沒有留言: