LogoLogo
ReleasesHomepageBlogSlack
3.0
3.0
  • Welcome
  • Concept
  • SQLWATCH Database
    • Requirements
      • Permissions
      • Performance Overhead
      • Storage Utilisation
    • Installation
      • Install with dbatools
      • Install with SqlPackage
      • Install with SSMS
      • Deploy from source code
      • Optional Components
      • Upgrade
      • Removal
      • Downgrade
    • Configuration
    • Known Issues
      • Collation conflict
      • Database drift
      • Login failed error when running disk logger
      • Deadlock when creating database
    • Notifications
      • Checks
      • Actions
      • Reports
      • How To
        • Add or modify check
        • Add or modify action
        • Add or modify report
      • Process Flow
    • Large Environments
  • Central Repository
    • Requirements
      • Performance overhead on the remote instance
      • Permissions
    • Installation
      • Removal
      • Upgrade
    • Configuration
    • Known Issues
  • Power BI Dashboard
    • Requirements
      • Permissions
    • Installation
    • Configuration
    • Known Issues
      • Power BI Load Errors
    • Performance
  • Grafana Dashboard
    • Requirements
    • Installation
    • Configuration
  • Azure Log Analytics Dashboard
    • Concept
    • Requirements
    • Installation
    • Configuration
  • Design Decision
    • Relations
    • Trend Tables
    • Data Types
      • Real Type
    • Primary Keys
    • Data Compression
    • Configuration Items
    • Using Apply instead of Join
  • Reference
    • Data-Tier Application Package
  • Integrations
    • Send notifications to Slack and Teams
    • dbachecks
  • FAQ
    • How do I check if SQLWATCH is running OK?
    • I am not seeing any data in Power BI
    • Can I modify default checks?
    • The app_log is growing fast
Powered by GitBook
On this page
  • Removal with dbatools
  • Removal with T-SQL
  • Removal when using Windows Scheduled Tasks

Was this helpful?

  1. SQLWATCH Database
  2. Installation

Removal

PreviousUpgradeNextDowngrade

Last updated 5 years ago

Was this helpful?

SQLWATCH database can be removed in two ways

Removal with dbatools

Removal command which removes SQLWATCH objects including database and Agent Jobs.

The Uninstall-DbaSqlWatch will only work if the database was installed using Install-DbaSqlWatch

There are safety measures built into the removal process to make sure that only objects deployed by Install-DbaSqlWatch are removed, including database. If the deployment was into an existing database this will not be removed, analogically, if user tables were added to the SQLWATCH database post-deployment they were not registered as part of the application and thus they will not be removed and subsequently the database will not be dropped.

Removal with T-SQL

If SQLWATCH was installed manually the only way to remove is to manually invoke DROP DATABASE and manually remove SQL Agent jobs.

Removal when using Windows Scheduled Tasks

When using Windows Scheduled Tasks instead of SQL Agent to invoke data collection, please remove Scheduled Tasks manually and any associated PowerShell scripts - these are created manually upon user request and as per User defined Path.

Uninstall-DbaSqlWatch