<%@ page contentType="text/html; charset=gb2312"%> 怎样限制sqlserver指定连接
网站公告:   ◆北天JAVA技术网热情为java爱好者服务,本网内容包括JAVA(JSP、servlet、EJB、webservice、j2ee、javabean、应用服务器、JavaScript),数据库(MYSQL、SQL Server、Sybase、Oracle、DB2、数据库综合知识),设计研究(设计模式、Struts、Spring、Hibernate、设计框架、设计综合知识),WEB2.0新技术(主要介绍AJAX),以及各种技术的入门、实例、例子等等,欢迎各位多来坐坐!◆  诚邀各位JAVA爱好者加盟!◆  本网站内容丰富,更新快,保证每周20篇以上!  
加入收藏
设为首页
联系站长
承接项目
  相关资源:网站首页 | 免费培训学院 | 技术论坛 | JAVA聊天室 | 作家专栏 | 开发工具 | 认证考试 | 会员俱乐部
  JAVA技术初学者园地 | jsp与servlet | javascript | Java源代码 | EJB | web service | 应用服务器 | JAVA综合知识
  设计研究设计模式 | 设计框架 | Struts | Spring | Hibernate | 开源项目 | 面向对象设计 | 设计综合知识
  数 据 库MYSQL | SQL Server | Sybase | Oracle | DB2 | Informix | Access | 数据库综合知识
  其他资源:AJAX新技术 | 网站开发 | ERP软件 | OA办公软件 | 商业智能BI | 开发综合知识 | 承接项目 | 项目试用

 
 
怎样限制sqlserver指定连接
     发布者: 发布时间:2006-07-07

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


怎样才能限制我的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)

(转载文章请保留出处:北天JAVA技术网(www.java114.com))
 
更多精彩文章:
用J2EE开发N层应用
J2EE 探险者:持久数据管理,第 1 部分
J2EE 探险者:持久数据管理,第 2 部分
J2EE 探索者:使用 Java Servlets 2.4 来执行过滤
[J2SE 5.0专题][2.1]泛型
J2EE 中使用EntityBean和JDO各有什么优点缺点
 
最近评论:
        
你曾悄悄的来过!
wow gold,wow gold,wow gold,ffxi gil max(8418)
        
冰封的往事!
wow power leveling,wow gold,WoW Gold,wow gold max(9280)
        
飞舞的传奇!
传世私服,传世私服.传奇世界私服传奇世界私服,传世私服传世私服, 传奇世界私服传奇世界私服.传奇私服传奇私服. max(9047)
        
标 题:   
内 容:   
 
                                  
 
免责声明:该文章由网友发表,如果对您造成侵权,请联系站长

首页 - 承接项目 - 网站地图 - 联系我们 -
版权所有北天JAVA技术工作室 ICP证号:粤ICP备06079815号