Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSdropdisabledmltrigger

  No additional text.


Syntax
create procedure sys.sp_MSdropdisabledmltrigger
    @source_object sysname,
    @source_owner sysname
as
    declare @artid uniqueidentifier
    declare @cmd nvarchar(1000)
    declare @triggername nvarchar(130)
    declare @guidstr nchar(32)
    declare @retcode int
    declare @qualified_tablename nvarchar(517)
    declare @qualified_trig_name nvarchar(517)
    declare @objid int

    if @source_owner is not NULL
        select @qualified_tablename = quotename(@source_owner) + '.' + quotename(@source_object)
    else
        select @qualified_tablename = @source_object

    select @objid = object_id(@qualified_tablename)
    if @objid is NULL
        return 0

    select top 1 @artid = artid from dbo.sysmergearticles where objid=@objid
    if @artid is NULL
        return 1

    exec @retcode=sys.sp_MSguidtostr @artid, @guidstr out
    if @retcode <> 0 or @@error <> 0 return (1)

    -- remove disable dml trigger, if it exists
    set @triggername= 'MSmerge_disabledml_' + @guidstr
    select @qualified_trig_name = quotename(schema_name(schema_id))+'.'+quotename(@triggername)
        from sys.objects where object_id=@objid

    if object_id(@qualified_trig_name, 'TR') is not null
    begin
        set @cmd= 'drop trigger ' + @qualified_trig_name
        exec sys.sp_executesql @cmd
        if @@error <> 0
            return 1
    end

    return 0

 
Last revision 2008RTM
See also

  sp_MSaddmergetriggers (Procedure)
sp_vupgrade_mergeobjects (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