Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_IHreplflush

  No additional text.


Syntax


-- Name:
--          sp_IHreplflush

-- Description:
--          HREPL: Request log reader to flush cache

-- Security:
--          Internal
-- Requires Certificate signature for catalog access

-- Returns:
--          Success/failure

-- Notes:
--			This procedure is used when administering heterogeneous publications, to request a flush of the log reader cache.
--			The log reader uses this timestamp to determine whether its cache is up to date or needs to be refreshed.  This
--			procedure is typically called within a transaction that updates publication or article data that is needed by
--			the log reader to correctly process publisher data, but when no corresponding update will be applied at the
--			publisher, such as adding or dropping publications, or changing a data type mapping.  A different mechanism is
--			used to coordinate updates to article meta data represented at both the publisher and distributor.

-- Owner:
--          

create procedure sys.sp_IHreplflush
(
    @publisher sysname
)
AS
BEGIN
    declare @retcode int
    declare @publisher_id int

    select @retcode = 0
    select @publisher_id = NULL

    -- Determine publisher id
    select @publisher_id = srvid
    from master.dbo.sysservers
    where upper(srvname collate database_default) = upper(@publisher) collate database_default

    if @@error<>0 or @retcode <> 0 or @publisher IS NULL
    BEGIN
        RAISERROR(21618, 16, -1, @publisher)
        return(1)
    END

    -- insert time stamp in IHpublishers to indicate when a log reader flush was requested
    update IHpublishers set flush_request_time = GetDate()
    where publisher_id = @publisher_id

    return(0)
END

 
Last revision 2008RTM
See also

  sp_IHarticlecolumn (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MSrepl_addpublication (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_changearticlecolumndatatype (Procedure)
sp_MSrepl_droppublication (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