Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MShelp_subscription

  No additional text.


Syntax
CREATE PROCEDURE sys.sp_MShelp_subscription
(
    @publisher sysname,
    @publisher_db sysname,
    @publication sysname,
    @subscriber sysname = '%',
    @subscriber_db sysname = '%'
)
as
begin
    set nocount on
    
    -- security check
    -- only db_owner can execute this
    
    if (is_member ('db_owner') != 1)
    begin
        raiserror(14260, 16, -1)
        return (1)
    end

    select distinct ss.srvname + ':' collate database_default + s.subscriber_db, ss.srvname, s.subscriber_db, s.subscription_type,
        sync_type, status, agent.name, agent.job_id from
        dbo.MSsubscriptions s, master.dbo.sysservers ss, MSdistribution_agents agent where
        s.publisher_id = (select srvid from master.dbo.sysservers where UPPER(srvname) = UPPER(@publisher)) and
        s.publisher_db = @publisher_db and
        s.publication_id = (select publication_id from dbo.MSpublications where
            publisher_id = s.publisher_id and
            publisher_db = s.publisher_db and
            publication = @publication) and
        ((@subscriber_db = N'%') or (s.subscriber_db = @subscriber_db)) and
        s.subscriber_id = ss.srvid and
        ((@subscriber = N'%') or (UPPER(ss.srvname) = UPPER(@subscriber))) and
        s.subscriber_id >= 0 and                    -- ignore virtual subscriptions
        s.agent_id = agent.id
end

 
Last revision 2008RTM
See also

  sp_instdist (Procedure)
sp_MSdrop_expired_subscription (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MShelp_subscription_status (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash