Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSBumpupCompLevel

  No additional text.


Syntax
create procedure sys.sp_MSBumpupCompLevel(
@pubid                uniqueidentifier,
@new_level            int
)
as

declare @retcode int, @old_level int

/*
** Security Check
*/
    EXEC @retcode = sys.sp_MSreplcheck_publish
    IF @@ERROR <> 0 or @retcode <> 0
        return (1)

    select @old_level = backward_comp_level
    from dbo.sysmergepublications
    where pubid = @pubid

    if @old_level < @new_level and @new_level = 90
    begin
		raiserror(22561, 16, -1)
		return 1
	end

    /* always bump UP, not Down in any case */
    if object_id('dbo.sysmergepublications', 'U') is not null
    begin
        update dbo.sysmergepublications
            set backward_comp_level= @new_level
            where pubid=@pubid and backward_comp_level < @new_level
    end
    if @@ERROR<>0 return (1)

    return (0)

 
Last revision 2008RTM
See also

  sp_changemergepublication (Procedure)
sp_mergearticlecolumn (Procedure)
sp_MSaddmergeschemaarticle (Procedure)
sp_MSreinitmergepublication (Procedure)
sp_MSreinit_hub (Procedure)
sp_validatemergepublication (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