help how to exclude master, msdb while EXEC master..sp_MSForeachdb 'USE [?]

  • While it is maybe not technically a system database, things skipping system databases should probably also exclude [distribution]. In recent versions of SSMS (SQL Server Management Studio), Object Explorer groups [distribution] under the "System Databases" node.

    Sincerely,
    Daniel

Viewing post 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply