Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSmerge_passDDLcmd

  No additional text.


Syntax
-- ===========================
-- Name:            sp_MSmerge_passDDLcmd
-- Description:      store DDL cmd text in sysmergeschemachange
-- Caller:            sp_MSmerge_alterview
--                        sp_MSmerge_altertrigger
--                        sp_MSmerge_schemaonly
-- Security:         Public interface, in resource DB
-- Returns:          0 : success
--                        1 : failure
-- Owner:           zhenl
-- ===========================
create procedure sys.sp_MSmerge_passDDLcmd(
@artid uniqueidentifier,
@pubid uniqueidentifier,
@ddlcmd nvarchar(max)
)
AS
    declare @schemaversion int, @schemaguid    uniqueidentifier, @schematype    int, @retcode int
    set @schemaversion = NULL
    select @schemaversion = schemaversion from dbo.sysmergeschemachange

    if (@schemaversion is NULL)
        set @schemaversion = 1
    else
        select @schemaversion = 1 + max(schemaversion) from dbo.sysmergeschemachange

    set @schemaguid = newid()
    set @schematype = 300 /* DDL actions */
    exec @retcode=sys.sp_MSinsertschemachange @pubid, @artid, @schemaversion, @schemaguid, @schematype, @ddlcmd
    if @@ERROR<>0 or @retcode<>0
        return 1
    return 0

 
Last revision 2008RTM
See also

  sp_MSmerge_alterschemaonly (Procedure)
sp_MSmerge_altertrigger (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