怎么才能限制SQLServer只能让指定的机器连接
2023-06-13 09:13:53 时间
正在看的ORACLE教程是:怎么才能限制SQLServer只能让指定的机器连接。Q.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)
(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)
相关文章
- 连接SQLServer数据库的步骤与方法(连接sqlserver)
- Java连接SQL Server:实现数据库完美对接(java链接sqlserver)
- 「SQLServer连接工具」使用方法及推荐(sqlserver连接工具)
- 使用JDBC连接SQLServer数据库(jdbc链接sqlserver)
- Linux下如何连接SQLServer数据库(linux连接sqlserver)
- 连接利用SQLServer实现远程连接(sqlserver远程)
- SQLServer数据库中玩转分区表(sqlserver分区表)
- 深入探索SQLserver实验的范例(范sqlserver实验)
- 申请SQLServer:配置步骤及注意事项(申请sqlserver)
- 步骤如何指定SQLServer步骤构建数据库应用(指定sqlserver)
- 开放 SQLServer:未来数据访问的新方式(开放sqlserver)
- 建立共享SQL Server 开启智能新时代(共享sqlserver)
- 快速学会:PHP连接SQLServer数据库(php连接sqlserver数据库)
- 拥抱未来,助力SQLServer全面升级(为所有sqlserver)
- SQLServer数据表转移实践经验(sqlserver转移表)
- :利用SQLServer实现表间连接(sqlserver表连接)
- 妙手回春:SQL Server被损坏表的恢复(sqlserver表恢复)
- 数据SqlServer:孤独的容器里空无一物(sqlserver空或无)
- 本使用SQLServer离线版本:简单易行(sqlserver离线版)
- 如何让Sqlserver实现它的瘦身梦?(sqlserver 瘦身)
- SQL Server 慢查询性能优化指南(sqlserver慢分析)
- SQL Server:价格偏高,服务却出色(sqlserver多贵)
- 利用SQLServer列拆分轻松实现字符串分割(sqlserver列拆分)
- 数据库如何连接本地SQLServer数据库(连本地sqlserver)
- 连接SQLServer怎么解决慢问题?(连接sqlserver慢)
- 如何正确连接到SqlServer(连接到sqlserver)
- sqlserver下Kill所有连接到某一数据库的连接