Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSsubscription_enabled_for_syncmgr

  No additional text.


Syntax


-- Name: sp_MSsubscription_enabled_for_syncmgr

-- Descriptions:

-- Parameters: as defined in create statement

-- Returns: 0 - success
--          1 - Otherwise

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

create procedure sys.sp_MSsubscription_enabled_for_syncmgr
(
    @publisher         sysname = NULL,
    @publisher_db     sysname = NULL,
    @publication     sysname = NULL,
    @subscriber     sysname = NULL,
    @subscriber_db     sysname = NULL,
    @enabled        int = NULL OUTPUT,
    @regkey            nvarchar(1000) = NULL OUTPUT
)
AS
BEGIN
    -- Drop the corresponding registry entry for MobileSync
    declare @keyexist            int

    -- no reg key to clean up for virtual subscribers
    if @subscriber is null
    begin
        select @enabled = 0
        return 0
    end

    SET @regkey = sys.fn_replgetsubscriptionregkey(@publisher, @publisher_db, @publication, @subscriber, @subscriber_db)

    BEGIN
        CREATE TABLE #keyexist (keyexist int)

        INSERT INTO #keyexist
        EXEC master.dbo.xp_regread 'HKEY_LOCAL_MACHINE', @regkey

        SELECT    @enabled = keyexist
        FROM    #keyexist

        DROP TABLE #keyexist
    END

    return 0
END

 
Last revision 2008RTM
See also

  sp_changemergepullsubscription (Procedure)
sp_changemergesubscription (Procedure)
sp_MSunregistersubscription (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