Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSreleasemergeadminapplock

  No additional text.


Syntax
create procedure sys.sp_MSreleasemergeadminapplock
    @lockowner nvarchar(32) = N'Session'
as
begin
    set nocount on

    declare @retcode smallint
    declare @lock_resource nvarchar(255)
    declare @publisher sysname
    declare @publisher_db sysname
    declare @DbPrincipal sysname

    select @publisher = publishingservername()
    select @publisher_db = DB_NAME(DB_ID())

    /*
    ** Security Check.
    */
    exec @retcode = sys.sp_MSreplcheck_publish
    if @retcode<>0 or @@error<>0
        return 1

    select @retcode = 0

    -- use the dbowner role
    select @DbPrincipal = N'db_owner'
    select @lock_resource = N'MSinternal_repl_merge_admin_' + convert(nvarchar(6), db_id())

    exec @retcode = sp_releaseapplock @Resource = @lock_resource, @LockOwner = @lockowner, @DbPrincipal = @DbPrincipal
    if @@error<>0 or @retcode<0
        return 1
    else
        return 0
end

 
Last revision 2008RTM
See also

  sp_addmergefilter (Procedure)
sp_addmergepublication (Procedure)
sp_changemergefilter (Procedure)
sp_changemergepublication (Procedure)
sp_dropmergearticle (Procedure)
sp_dropmergefilter (Procedure)
sp_dropmergepublication (Procedure)
sp_mergearticlecolumn (Procedure)
sp_MSdrop_rladmin (Procedure)
sp_MSmerge_alterschemaonly (Procedure)
sp_MSmerge_altertrigger (Procedure)
sp_MSmerge_alterview (Procedure)
sp_repladdcolumn (Procedure)
sp_repldropcolumn (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