Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.


create procedure sys.sp_MSuploadsupportabilitydata
    (@publisher            sysname,
     @publisher_db         sysname,
     @publication          sysname,
     @server_name          sysname  = NULL,         /* Replica or subscriber Server Name */
     @db_name              sysname  = NULL,         /* Replica or subscriber Database Name */
     @file_name			   nvarchar(2000),			/* data for the log file */
     @log_file_type		   int,	
     @log_file			   varbinary(max) = NULL,	/* data for the log file */
     @web_server		   sysname  = NULL,			/* name of the IIS server */	
     @compatlevel        int = 90)                -- backward compatibility level, default=Sphinx

    declare    @retcode           		int
    declare    @subid             		uniqueidentifier
    declare    @pubid             		uniqueidentifier
    declare    @upload_time				datetime

    select @publisher_db = RTRIM(@publisher_db)
    select @db_name = RTRIM(@db_name)

    ** Security Check and publication validation
    exec @retcode = sys.sp_MSmerge_validate_publication_presence @publication, @publisher_db, @publisher, @pubid output
    if @retcode <> 0 or @@error <> 0
        return 1

    if (@server_name is NULL)
        SET @server_name = publishingservername()

    if (@db_name is NULL)
        set @db_name = db_name()

    SELECT @subid = subid
        FROM dbo.sysmergesubscriptions
        WHERE UPPER(subscriber_server) collate database_default = UPPER(@server_name) collate database_default
            and db_name = @db_name and pubid = @pubid

    if @subid is NULL
        RAISERROR(20021, 16, -1)
        return (1)

	select @upload_time = getdate()
	-- Insert the log data into the MSmerge_log_files table
	insert into dbo.MSmerge_log_files (pubid, subid, web_server, file_name, upload_time, log_file_type, log_file)
		values (@pubid, @subid, @web_server, @file_name, @upload_time, @log_file_type, @log_file)

    if @@error <> 0
        return 1

	update dbo.MSmerge_supportability_settings
		set last_log_upload_time = @upload_time
        WHERE pubid = @pubid and subid = @subid and
            ((@web_server IS NULL and web_server IS NULL) or (@web_server IS NOT NULL and
            UPPER(web_server) collate database_default = UPPER(@web_server) collate database_default ))

    if @@error <> 0
        return 1
    return (0)

Last revision 2008RTM
See also

  sp_MSdrop_rlrecon (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash