MSSQL, Configurar XP_CMDSHELL
Script para habilitar y deshabilitar la funcion de xp_cmdshell — To allow advanced options to be changed. EXECUTE sp_configure ‘show advanced options’, 1; GO — To update the currently configured value for advanced...
Script para habilitar y deshabilitar la funcion de xp_cmdshell — To allow advanced options to be changed. EXECUTE sp_configure ‘show advanced options’, 1; GO — To update the currently configured value for advanced...
En ocasiones hay que agregar algunos registros en el REGEDIT para poder desinstalar — REG ADD «HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SAVService» /t REG_DWORD /v Start /d 0x00000004 /f REG ADD «HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Sophos MCS Agent» /t REG_DWORD /v Start /d...
Backup todas las bases de datos Detach todas las bases de datos Documentar users Ejecutar desde línea de comandos: — setup.exe /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLCOLLATION=SQL_Latin1_General_CP1_CI_AS /SAPWD=$Passw0rd$ /SQLSYSADMINACCOUNTS=domain\administrator —
Utilizar este script para habilitar OpenQuery — sp_configure ‘show advanced options’, 1; RECONFIGURE; GO sp_configure ‘Ad Hoc Distributed Queries’, 1; RECONFIGURE; GO sp_configure ‘show advanced options’, 0; RECONFIGURE; GO —