Returns information about a specified database or a list of all publication databases on the server.
sp_helpreplicationdb [databasename [, {pub | sub}]]
where
If run without options, this stored procedure returns a list of all published databases on the server. If run with options, it returns the databasename only if that database is set for publishing (when the pub option is supplied) or subscribing (when the sub option is supplied).
This example returns information about the inventory database and indicates if it is a subscription database.
sp_helpreplicationdb inventory, sub
Execute permission defaults to the public group.
sysdatabases
sp_helppublication |