怎样才能限制SQL Server只能让指定的机器连接

2016-01-29 14:48 24 1 收藏

怎样才能限制SQL Server只能让指定的机器连接,怎样才能限制SQL Server只能让指定的机器连接

【 tulaoshi.com - Oracle教程 】

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)

来源:https://www.tulaoshi.com/n/20160129/1494306.html

延伸阅读
标签: 宝宝 长高
怎样才能让宝宝长得强壮 作为父母,我们都希望自己的宝宝越健康越好,但现实是,很多宝宝体质比较弱,让父母比较操心。那么 怎样才能让宝宝长得强壮 呢?相信不少的妈tulaoshi妈都比较关心这样的问题。母婴专家指出,导致宝宝体质弱的原因有很多,不良的饮食习惯或者是疾病等因素,所以解决宝宝体弱的问题,要针对这些情况,对应的采取措施。 ...
标签: 数学 宝宝
看、听、做让宝宝爱上数学 如何能使宝宝获得学习数学的乐趣,并爱上数学呢?爸妈们需要做的是将数学的概念尽可能趣味化,而且尽量减少对宝宝在学习过程中的压力。您要让宝宝了解数学是日常生活的一部分,而您也需要表现出对数字的好感,那么宝宝也就更加有动力去学习数学了。以下给您介绍4种诀窍: 1、每天都要用到数学 让宝宝知道数学在...
何必抱怨宝宝长得不如隔壁宝宝好 幼儿期宝宝的生长发育牵动着所有家长们的心:N年以后,自家的宝宝会不会脱颖而出,成为自己的骄傲呢?爸爸说,将来孩子生长发育得好,咱就送孩子去踢球,代表中国踢出水平,彻底为中国足球雪耻!完成自己这枚老球迷的心愿。妈妈说将来孩子生长发育的好,就送他去北影当演员,天天在电视上看着他,当妈的这...
标签: 孕妇 孕妇体重
怎样才能让孕妇的增重达标 自从怀孕后,我们的健康就与腹中胎儿的健康联系在一起,这个时候我们不仅要保证自身的营养需求,更要考虑到胎儿身体发育所需要的营养。所以,很多孕妈咪为了给腹中宝宝提供足够的养分必须适当增加营养,当然饮食不能过度,更不能肆无忌惮的吃,吃得太少不好,但如果吃得太多的话,也是不利于健康的。那么 怎样才能让...
标签: 养生 健康
    怎样才能让大腿变瘦?现在很多人在办公室坐上八个小时甚至更多的时间,慢慢地会发现大腿越来越粗壮,其实只要认清你大腿的问题真正出在哪里?用一些简单的运动甚至改变坐姿,都可以达到阻止大腿变粗的效果……一起来看看吧?     肌肉转化为脂肪     瘦腿方案:恢复运动习惯或练美腿功...

经验教程

388

收藏

28
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部