(self, mode)
| 73 | return cmd |
| 74 | |
| 75 | def _xpCmdshellConfigure2000(self, mode): |
| 76 | debugMsg = "configuring xp_cmdshell using sp_addextendedproc " |
| 77 | debugMsg += "stored procedure" |
| 78 | logger.debug(debugMsg) |
| 79 | |
| 80 | if mode == 1: |
| 81 | cmd = getSQLSnippet(DBMS.MSSQL, "enable_xp_cmdshell_2000", ENABLE=str(mode)) |
| 82 | else: |
| 83 | cmd = getSQLSnippet(DBMS.MSSQL, "disable_xp_cmdshell_2000", ENABLE=str(mode)) |
| 84 | |
| 85 | return cmd |
| 86 | |
| 87 | def _xpCmdshellConfigure(self, mode): |
| 88 | if Backend.isVersionWithin(("2000",)): |
no test coverage detected