Overview:
SQL Server 2005 default 是不可以做 remote connection 的 (有點難以理解...), 而要設定SQL Server 為可以remote connection 也不是這麼容易的事. 經過一返Google以及試驗後, 終於成功以 SQL Server Authentication login 入 remote 既 DataBase.
Reference:
Enable remote connection to SQL Server 2005 Express
這個link講的是 2005 Express, 不過其實都是大同小異
Steps:
- Enable SQL Server Authentication, 開一個 SQL Server Authentication Login Account (請參照上一個post)
- 去 "All Programs" => "SQL Server 2005" => "Configuration Tools" => "SQL Server Surface Area Configuration"
- 揀 "Surface Area Configuration for Services and Connections"
- Expand "Server name" => "Database Engine" => "Remote Connections"
- 揀 "Local and remote connections", 揀埋 "Using both TCP/IP and named pipes"
- 0向左面 "SQL Server Browser", Expand 開揀 "Services", "Start type" 揀 Automatic, apply then start service.
- 其實以上步驟已經configure好remote connection, 不過有可能SQL Server 無 enable到 named pipes 同 TCP/IP. 咁就要跟以下步驟黎enable 返
- 去 "All Programs" => "SQL Server 2005" => "Configuration Tools" => "SQL Server Configuration Manager"
- Expand "SQL Server 2005 Network Configuration", 揀 "Protocols for xxxxx", xxxxx 係你 Server Instance 個名
- 0向右邊enable 返Named Pipes 同埋 TCP/IP, 跟住 restart service
沒有留言:
發佈留言