WD1X.COM - 问答一下,轻松解决,电脑应用解决专家
主板显卡CPU内存显示器
硬盘维修显卡维修显示器维修
注册表系统命令DOS命令Win8
存储光存储鼠标键盘
内存维修打印机维修
WinXPWin7Win11Linux
硬件综合机箱电源散热器手机数码
主板维修CPU维修键盘鼠标维修
Word教程Excel教程PowerPointWPS
网络工具系统工具图像工具
数据库javascript服务器
PHP教程CSS教程XML教程

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

更新时间:2012-03-06 22:44 作者:佚名点击:

A.SQLServerhasnobuilt-intools/facilitiestodothis.Italsodoesnothavethefacilitytorunastored-procedureonconnectionthatcouldbewritten/usedtodothis.Thereforeyouhavethefollowingchoices:-SQLServer没有这样的功能,也没有提供在连接时执行某一特定过程的功能。这里介绍几种实现的方法

1.PuttheSQLServerbehindafirewallandusethattorestrictAccess.Thisisthemostsecureandfunctionalwaytodowhatyouwant.使用防火墙,它提供了安全和你想用的工具。

2.WriteyourownODSGatewayandpointtheclientsatthatinsteadoftheSQLServer-theODSGatewaywillthendothechecking.However,thereisnothingstoppingclientsfiguringoutthecorrectSQLclient-configentriestopointstraightattheSQLServer.ThereareexamplesofODScodeintheSQLProgrammersToolkit-availableforfreedownloadfromtheMSWebsite.写自己的ODS网关代替SQLServer的客户端-在ODS网关中检查。不过,这并不能停止正常的客户端连接SQLServer。在SQLProgrammersToolkit中有一个这样的例,可以从微软站点免费下载。

3.Writeaconstantlyrunning/scheduledstored-procedurethatcheckstherelevantcolumninsysprocesses(net_address),andthenissuesaKILLcommandforanyprocessesthatshouldnotberunning.NotethatthisonlyworksforMACaddresses.Thiswayallowspeopletoconnectandpossiblymakechangesbeforetheyarespottedandkilled.写一个存储过程检查sysprocesses中的相应列(net_address)

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
你可能感兴趣的内容