国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

怎樣才能限制SQL Server只能讓指定的機器連接

2024-08-31 00:49:26
字體:
來源:轉載
供稿:網友


q. how can i restrict access to my sql server so that it only allows certain machines to connect?
(v1.0 19.10.1998)


怎樣才能限制我的sql server只能讓指定的機器連接


a. sql server has no built-in tools/facilities to do this. it also does not have the facility to run a stored-procedure on connection that could be written/used to do this. therefore you have the following choices :-

   sql server沒有這樣的功能,也沒有提供在連接時執行某一特定過程的功能。這里介紹幾種實現的方法

1. put the sql server behind a firewall and use that to restrict access. this is the most secure and functional way to do what you want.

    使用防火墻,它提供了安全和你想用的工具。

2. write your own ods gateway and point the clients at that instead of the sql server - the ods gateway will then do the checking. however, there is nothing stopping clients figuring out the correct sql client-config entries to point straight at the sql server. there are examples of ods code in the sql programmers toolkit - available for free download from the ms website.

    寫自己的ods網關代替sql server的客戶端 - 在ods網關中檢查。不過,這并不能停止正常的客戶端連接sql server。在sql programmers toolkit中有一個這樣的例, 可以從微軟站點免費下載。

3. write a constantly running/scheduled stored-procedure that checks the relevant column in sysprocesses (net_address), and then issues a kill command for any processes that should not be running. note that this only works for mac addresses. this way allows people to connect and possibly make changes before they are spotted and killed.

    寫一個存儲過程檢查sysprocesses中的相應列(net_address)
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 双柏县| 晋中市| 安远县| 大理市| 长春市| 宁国市| 迁西县| 沙田区| 陇川县| 航空| 尚义县| 曲阜市| 江阴市| 洱源县| 佛坪县| 二连浩特市| 随州市| 新竹市| 芒康县| 城固县| 当雄县| 梅州市| 大邑县| 天津市| 日照市| 会理县| 霍林郭勒市| 冀州市| 汉寿县| 呼伦贝尔市| 蒲城县| 香港 | 长丰县| 兴文县| 尼木县| 洛宁县| 安溪县| 裕民县| 安福县| 富宁县| 大石桥市|