Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSchecksharedagentforpublication

  No additional text.


Syntax
create procedure sys.sp_MSchecksharedagentforpublication
(
    @publisher_id int
    ,@publisher_db sysname
    ,@publication sysname
)
as
begin
    set nocount on
    declare @retcode int
                ,@publication_id int
                ,@independent_agent int

    -- Get the publication information
    select @publication_id = publication_id
            ,@independent_agent = independent_agent
    from dbo.MSpublications
    where publisher_id = @publisher_id and
        publisher_db = @publisher_db and
        publication = @publication
    if @publication_id is NULL
    begin
        raiserror (20026, 16, -1, @publication)
        return (1)
    end
    
    -- Perform PAL check with retrieved @publication_id
    
    exec @retcode = sys.sp_MScheck_pull_access
                        @agent_type = 0, -- distrib agent
                        @publication_id = @publication_id
    if @@error <> 0 or @retcode <> 0
    begin
        raiserror (15247, 16, -1)
        return (1)
    end
    
    -- return the resultset
    
    select 'runassharedagent' = case when (@independent_agent = 0) then 1 else 0 end
    
    -- all done
    
    return 0
end

 
Last revision 2008RTM
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