|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp,你就只能等着微软给你解决,它不乐意你就只好悲催。而且asp跑在windows服务器上,windows服务器跟linux比起来简直弱爆了!serverQ.HowcanIrestrictaccesstomySQLServersothatitonlyallowscertainmachinestoconnect?
(v1.019.10.1998)
如何才干限定我的SQLServer只能让指定的呆板毗连
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)</p>优点:简单易学、开发速度快、有很多年“历史”,能找到非常多别人做好的程序来用、配合activeX功能强大,很多php做不到的asp+activeX能做到,例如银行安全控件 |
|