Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSfixupuseftp

  No additional text.


Syntax

create procedure sys.sp_MSfixupuseftp (
    @publisher sysname,
    @publisher_db sysname,
    @publication sysname,
    @use_ftp bit, -- default null
    @subscription_type int,
    @force_zero bit
    )
AS

    DECLARE @local_use_ftp bit
    DECLARE @retcode INT

    IF @use_ftp = 0 AND @force_zero = 0
    BEGIN
        -- Parameter is unspecifed, try to inherit value from
        -- shared susbcriptions
        SELECT TOP 1 @local_use_ftp = use_ftp
          FROM MSsubscription_properties sp
          JOIN MSreplication_subscriptions rs
            ON UPPER(sp.publisher) = UPPER(rs.publisher)
           AND sp.publisher_db = rs.publisher_db
           AND rs.subscription_type = @subscription_type
           AND rs.independent_agent = 0
         WHERE UPPER(sp.publisher) = UPPER(@publisher)
           AND sp.publisher_db = @publisher_db
           AND sp.publication <> @publication
        IF @@ROWCOUNT > 0
        BEGIN
           -- Inherit the values from other shared subscriptions
           UPDATE MSsubscription_properties SET
            use_ftp = @local_use_ftp
            WHERE UPPER(publisher) = UPPER(@publisher)
              AND publisher_db = @publisher_db
              AND publication = @publication
        END
    END
    ELSE
    BEGIN
        EXEC @retcode = sys.sp_MSupdatesharedagentproperties
           @publisher = @publisher,
           @publisher_db = @publisher_db,
           @publication = @publication,
           @property = N'use_ftp',
           @intvalue = @use_ftp,
           @subscription_type = @subscription_type

        IF @retcode <> 0 OR @@ERROR <> 0
            GOTO FixupFailure
    END

    RETURN 0

FixupFailure:
    RETURN 1


 
Last revision 2008RTM
See also

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