sqlserver服务器 急救
发布时间:2020-12-12 13:39:56 所属栏目:MsSql教程 来源:网络整理
导读:?今天突然发现,sqlserver服务器 远程桌面连不上了,但是数据库都能正常连接,记得是上次更改了远程桌面的端口,但是防火墙上没有开启规则。 现在通过数据库用户解决方法如下:作为备忘 --开启xp_cmdshell--SQL Server blocked access to procedure 'xp_cmds
?今天突然发现,sqlserver服务器 远程桌面连不上了,但是数据库都能正常连接,记得是上次更改了远程桌面的端口,但是防火墙上没有开启规则。 现在通过数据库用户解决方法如下:作为备忘 --开启xp_cmdshell --SQL Server blocked access to procedure 'xp_cmdshell' exec sp_configure 'show advanced options',1 go reconfigure go exec sp_configure 'xp_cmdshell',1 go reconfigure go exec xp_cmdshell 'netsh advfirewall firewall add rule name="1234" protocol=TCP dir=in localport=1234 action=allow' exec xp_cmdshell 'netsh advfirewall firewall delete rule name="1234"' (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |