Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_IHget_loopback_detection

  No additional text.


Syntax

CREATE PROCEDURE sys.sp_IHget_loopback_detection
(
    @publisher sysname,
    @publisher_db sysname,
    @publication sysname,
    @subscriber sysname,
    @subscriber_db sysname
)
as
begin
    set nocount on

    DECLARE @retcode	 int

   -- Security check: Sysadmins and db_owners only
   exec @retcode = sys.sp_MSreplcheck_publish
   if @@error <> 0 or @retcode <> 0
   begin
      return 1
   end

   -- Has to be executed from distribution database
   if sys.fn_MSrepl_isdistdb (db_name()) != 1
   begin
      raiserror (21482, 16, -1, 'sp_IHget_loopback_detection', 'distribution')
      return 1
   end

    select distinct loopback_detection
    from
    	MSsubscriptions s,
 		master.dbo.sysservers ss
    where
    s.publisher_id =
		 (select srvid from master.dbo.sysservers
    	 where UPPER(srvname collate database_default) = UPPER(@publisher) collate database_default) and
    s.publisher_db = @publisher_db and
    s.publication_id =
		 (select publication_id from MSpublications
	 	 where publisher_id = s.publisher_id and
               publisher_db = s.publisher_db and
               publication = @publication) and
    s.subscriber_db = @subscriber_db and
    s.subscriber_id = ss.srvid and
    UPPER(ss.srvname collate database_default) = UPPER(@subscriber) collate database_default and
    s.subscriber_id >= 0
end

 
Last revision 2008RTM
See also

  sp_MSdrop_repltran (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