开店乐

开店乐电子商务研究 KaiDianLe.Com

网站地图 :

  搜索:

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

【日期:2006-8-7】【作者:不祥】【转载自:开店乐】

相关文章:
 最好的网上开店系统:凡人网络购物系统免费下载
 SQL Server存储过程编写和优化措施
 SQL Server日志文件丢失的恢复方法
 SQL Server2000数据库系统表的应用
 品味SQL Server 2005的几个新功能
 SQL Server2000 索引结构及其使用
 SQL Server 中的几个函数要记录
 用SQL存储过程实现批量插入数据
 获取SQL Server服务器的当前连接数
 记存储过程中经常用到的本周\本月\本年函数
 数据库安全--应用IDS保卫数据库
 远程连接SQL Server服务器的解决方案
 SQL Server数据库定时自动备份
 升级到SQLServer2005的10大理由
 攻破SQL服务器的十种方法
 SQL Server安全规划全攻略
 SQL Server 服务器安装剖析
 大型数据库的SQL查询优化技巧
 优化SQL Server服务器内存配置的策略
 SQL服务器外网IP测试故障解决
 SQL SERVER 2000 SP4新特性概述
 Access与Sql Server之ASP代码比较
 通过作业定时同步服务器上的数据
 比较两个数据库的表结构差异
 不破坏原加密存储的存储解密
 优化--让你的SQL运行速度明显提高
 SQL Server数据库的备份与恢复
 数据库学习:查询区分大小写
 查询指定的表在那些数据库中存在
 Web环境下SQL中数据的磁带备份与恢复
 SQL Server里函数的两种用法
 SQL语法参考手册
 SQL数据库的六种数据移动方法
 Access转换成为SQL Server
 数据变换和转换注意事项(SQL)
 SQL语句性能调整原则
 SQL实现从数据库中随机抽N条记录
 怎样能限制SQL Server只能让指定的机器连接
 SQL存储过程入门与提高
 SQL Server端口更改后的数据库连接方式
 怎样设置SQL Server的用户及权限
 关于SQL语句查询分页数据的解决方案
 关于sql数据库维护失败的问题查找方法
 SQL Server与Excel数据互导
 减少动态SQL语句的预编译时间
 一个完整的SQL SERVER数据库全文索引的示例
 如何让你的SQL运行得更快
 MS-SQL server数据库开发精典技巧
 MSSQL按分页返回查询结果的存储过程
 MySQL 4.1.0 中文参考手册[连载]
 数据库访问技术
 SQL语言快速入门
 JDBC驱动程序的类型
 Microsoft的MSDN里面对ODBC的介绍
 JDBC1.2中几个最重要的接口和类
 SQL7.0储存过程调试
 UDA技术综述
 SQL Server的存储过程调用Com组件
 通过HTTP访问SQL Server 2000
 数据库应用程序需注意的问题
 SQL Server安全性简介
 用COM自动服务扩展SQL Server功能
 全面接触SQL语法
 SQL Server 2005数据库升级要点和技巧
 多条件数据库查询的优化方法
 如何解决SQL Server服务器耗尽内存的情况
 SQL Server的空值处理策略
 利用数据库日志恢复数据到时间点的操作
 得出SQL语句的执行时间的方法
 SQL Server2000数据库文件损坏时如何恢复
 在SQL Server 2000里设置和使用数据库复制
 修改系统密码后SQL服务器无法启动解决
 远程检测MS SQL Server账号安全性
 基于角色的方式管理SQL Server安全
 针对MS SQL SERVER的安全防御方案
 SQL Server补丁安装常见问题
 保护SQL Server:为安全性而安装
 SQL Server数据库安全规划全攻略
 SQL Server 2000 客户端实用程序小技巧
 SQL Server到Oracle连接服务器的实现
 把Access数据库移植到SQL
 避免Access和SQL Server的空值冲突
 用SQL Server保持会话状态
 两个SQL Server维护技巧
 Sql Server全文搜索中文出错的问题
 SQL Server备份的三个恢复模型
 利用BCP恢复SQL Server 2000数据库
 常用SQL字符串函数问题集锦
 SQL语句--如何替换字符串中的个别字符?
 MSSQL Ntext中的字段替换处理存储过程
 SQL中将一列数据分成三列来显示的方法
 SQL SERVER中替换text,ntext列中的字符串
 SQL存储过程来建立自动备份数据库
 Microsoft SQL Server 数据库维护计划
 两台Sql Server数据同步解决方案
 用SHA1或MD5 对用户身份验证的简单实现
 SQL Server开发的二十一条军规
 一个四用户信息同步更新的存储过程
 SQL Server中如何计算农历
 SQL Server安全设置清单列表
 SQL Server存储过程入门与提高

版权所有:Kaidianle.Com  联系方式:Shnxn@Yhaoo.Com.Cn 京ICP备06028743号 在线留言