怎么才能限制SQL Server只能让指定的机器连接
房弘钧,刘寅涛,奉新县教育局
正在看的oracle教程是:怎么才能限制sql server只能让指定的机器连接。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)
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
-
-
快速向表插入大量数据
当需要对一个非常大的表INSERT的时候,会消耗非常多的资源,因为update表的时候,oracle需要生成 redo log和undo log;此时最...
[阅读全文]
-
-
-
Oracle入门学习五
学习视频: https://www.bilibili.com/video/BV1tJ411r7EC?p=55 数据的完整性:保证插入表格的数据必须正确。...
[阅读全文]
-
Oracle入门学习六
事务:把一组操作看做一个工作单元,要么都执行,要么都不执行。dml操作才有事务,查询没有事务。 开始事务:从上一次的事务结束之后,从第一次dml操作,就...
[阅读全文]
-
网友评论