• Hi there,

    the simplest way is replacing this line

    insert into @dbs

    select name from sys.databases order by name

    with this one

    insert into @dbs

    values ('Name_of_DB')

    The nicest way will be removing the whole loop, but if you want to all DBs in the future, then you should add the loop again

    cheers

    Alejandro Pelc