log shipping

  • hello experts

    i have 800 databases on my server, some are configurd with logshipping and some are not configured, how can i get list of databases which are not configured with log shipping??

    its urgent

    thank you

  • I do not have log shipping running anywhere to test this, but i will give you something to start with maybe...

    select [name] from sys.databases where [name] not in (select primary_database from msdb.dbo.log_shipping_primary_databases)

Viewing 2 posts - 1 through 1 (of 1 total)

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