电脑知识爱好者 帮你提供最完美的电脑学习网站Rss 2.0

今天是:

知识在于积累,成功在于努力。--站长(请收藏我们便于您学习) [设为首页]  [加入收藏]  [联系我们]
网站首页 | 菜鸟学堂 | 电脑故障 | 电脑系统 | 图像设计 | 工具下载 | 图片中心 | 电脑入门 | 菜鸟入门 | 电脑问题 | 硬件知识 | BOIS设置 | 网站更新
您现在的位置: 电脑知识 爱好者 >> 菜鸟学堂 >> 网络管理员 >> 正文 用户登录 新用户注册
怎样来限制 SQL Server指定主机连接
电脑知识爱好者 www.cfaninfo.com 帮您成为电脑知识高手为您提供技术信息   

          ★★★   作者:佚名    文章来源:互联网整理    点击数:    更新时间:2007-10-24 添加到百度搜藏 添加到百度搜藏 【字体:

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) 

免责声明:本网转载内容均注明出处,转载是出于传递更多信息之目的,并不代表我们立场。

  • 上一个文章:

  • 下一个文章:
  • 赞 助 商
     
    频 道 最 新
    · 一个网吧的网管日记曝光
    · 局域网故障的排查过程
    · 局域网故障的排除技术经验
    · 网管常见的错误有哪些?
    · 软件没有卸载程序 该怎么删除它
    · 解决交换机IP地址与服务器IP地址冲突方法
    · 网络管理员 服务器使用中常见问题解答
    · 黑屏 可绕过微软盗版验证的软件
    · 如何删除本地连接2
    · 如何用路由器限制局域网电脑的流量
    · 设计局域网时的几个因素分析
    · 如何防辐射,最有效防电脑辐射方法
    · 电脑故障概述,电脑故障的区分
     
    相关文章
    没有相关文章