# **MSSQL 遠端連線管理** ## **1. 防火牆設定** :::warning Enable TCP port 1433 (default port for SQL Server) ::: :::success 以管理員身份開啟 Windows PowerShell  <br> 輸入下列指令 ``` New-NetFirewallRule -DisplayName "SQLServer default instance" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow New-NetFirewallRule -DisplayName "SQLServer Browser service" -Direction Inbound -LocalPort 1434 -Protocol UDP -Action Allow ```  ::: ## **2. SQL Server 設置** :::success ### **設置認證及登入模式** **執行 SSMS -> 指定 Instance Properties -> Security **  <br>  勾選 SQL Server and Windows Authentication mode <br> **移至 Connections page**  勾選 Allow remote connectios to this server ::: ## **3. 設置 Listen 服務** :::success **執行 SQL Server Confituration Manager**  <br> SQL Server Netowrk Configuration -> Protocols -> TCP/IP -> Enable  <br> SQL Server Services -> SQL Server -> Restart  <br> 以 SSMS 改以 IP 方式連接  ::: ###### tags: `Database` `MSSQL`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up