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

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)

时间: 2024-08-07 04:03:16

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

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

正在看的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 al

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

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 ru

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

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 ru

怎样才能限制SQLServer只能让指定的机器连接(转)

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 store

使用SQL Server Driver for PHP解决PHP连接MSSQL乱码的问题

原文 使用SQL Server Driver for PHP解决PHP连接MSSQL乱码的问题 最近帮客户写了一个.net商城网站的发布接口,大家都知道.net一般都使用MSSQL数据库,但鱼丸不会.net呀,没办法,只能使用PHP连接SQL Server,然后来发布商品数据.因为客户采集的英文网站,但是要求发布时翻译成德语,发布完了,结果发现标题内容这些地方有乱码,在网上找了大半天,也试了很多种方法,结果使用SQLSRV解决了问题! 官方网址:http://msdn.microsoft.com

sql2005-高人救我,sql server 2005 数据库不时无法远程连接

问题描述 高人救我,sql server 2005 数据库不时无法远程连接 说明:关于我这个问题,我穷究了好几天,网上几乎所有相关问题的方法我都试过了,仍然没有解决.特来C论坛请教高手,万望各位不吝赐教.新来的,无C币,悬赏C币只有一个,仅代表我的一点感激之情,请勿见笑. 情况:asp + sql 2005,用的动易siteweaver 6.8 asp cms系统,一台web服务器,一台数据服务器,两台机器直连组的局域网. 问题:直接在数据服务器上连接数据库,一直都正常,在web服务器上通过内网

SQL Server 2005建立与服务器的连接时出错的解决方案

  打开新安装好的网站后却显示了如下错误: 在建立与服务器的连接时出错.在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败. (provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错) 解决办法: 1.在"外围配置"工具把"仅TCP/IP"选上. 2.然后从"配置管理器"中找到"...2005网络配置"->"

SQL Server用NOT EXISTS或(外连接+判断为空)方案实例

用IN写出来的SQL的优点是比较容易写及清晰易懂,这比较适合现代软件开发的风格. 但是用IN的SQL性能总是比较低的,从SQL执行的步骤来分析用IN的SQL与不用IN的SQL有以下区别: SQL试图将其转换成多个表的连接,如果转换不成功则先执行IN里面的子查询,再查询外层的表记录,如果转换成功则直接采用多个表的连接方式查询.由此可见用IN的SQL至少多了一个转换的过程.一般的SQL都可以转换成功,但对于含有分组统计等方面的SQL就不能转换了. 推荐在业务密集的SQL当中尽量不采用IN操作符 NO

删除SQL Server数据中指定的重复记录

  delete from 表 where 主键=(select top 1 主键 from 表 where 相同字段=(select 相同字段 from 表 group by 相同字段 having count(*)>1)) 主键是表中绝对没有重复值的字段,如自动增量ID; 相同字段如"采集时间",删除表中采集时间相同的记录 本语句,每执行一次,只能删除一条重复记录,如果有三条记录有相同"采集时间",就要循环执行该语句两次.