Submit a ticketCall us

Putting Your Logs Where They Belong with the New SolarWinds Log Manager for Orion

The new SolarWinds® Log Manager for Orion® finally puts your log data right where it belongs, in the heart of your Orion console. Gain insight into the performance of your infrastructure by monitoring your logs in a unified console allowing you to see a wealth of information about the health and performance of your network and servers.

Reserve a Seat for Wednesday May 23rd 11am CDT | Reserve a Seat for Tuesday May 22nd 10:30am GMT | Reserve a Seat for Tuesday May 22nd 1pm SGT / 3pm AEST

Home > Success Center > Archive > 2018Jan03 - Deletes > Drop multiple stored procedures in the Orion database

Drop multiple stored procedures in the Orion database

Table of contents
This article is slated for Deletion. Do not update this article. If you have questions please send a message to

Created by Mariusz Handke, last modified by Gerald.Prado on Jan 03, 2018

Views: 1,099 Votes: 1 Revisions: 8


This article provides information on how to drop multiple (or all) stored procedures in the database. This is useful while upgrading Orion and facing issues with some stored procedures not being able to be modified or recreated.


All Orion Platform versions


The following steps allow you to create set of queries which can be executed, resulting in dropping specified stored procedures (in example below: stored procedures which names starts with dbm_):

  1. Make sure to backup database, although dropping views has no impact on stored data.
  2. Open SQL Server Management Studio (SSMS).
  3. Use below query to drop stored procedures.
    use YOUR-DB-NAME /* put your database name here */
    DECLARE @sql VARCHAR(MAX) = ''
    SELECT @sql = @sql + 'DROP PROCEDURE ' + QUOTENAME(SCHEMA_NAME(schema_id)) + '.' + QUOTENAME(o.[name]) +';' + @CRLF
    FROM sys.objects o
    WHERE o.[type]='p' AND o.[name] LIKE 'dbm_%'

    You can use your own criteria to specify stored procedures name (pattern) or skip the WHERE clause to drop all views.
  4. Run Configuration Wizard, selecting option Database otherwise Orion will not work.


You can also preview the final command, without execution. To do so, replace:



Last modified