Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSgettranconflictname

  No additional text.


Syntax
create procedure sys.sp_MSgettranconflictname (
@publication sysname,
@source_object nvarchar(540),
@str_prefix nvarchar(30) = NULL,
@conflict_table sysname = NULL OUTPUT)
AS
begin
    declare @objid              int
    declare @retcode            int
    declare @object_name        sysname
    declare @name_out           sysname
    declare @pubid              int
    declare @article            sysname
    declare @artid              int
    declare @prefixlen          int

    if (@str_prefix is NULL)
        select @str_prefix = 'conflict_'

    select @prefixlen = len(@str_prefix)

    select @pubid=pubid from syspublications
        where name=@publication

    select @objid = object_id(@source_object)
    select @artid = artid, @article=name from sysarticles
        where objid = @objid and pubid=@pubid

    if len(@publication) + len(@article) > 128 - @prefixlen -1   -- sysname minus prefix len
    begin
        select @object_name = @str_prefix +
            convert(nvarchar(59), @publication) +
            '_' + convert(nvarchar(59), @article)
    end
    else
    begin
        select @object_name = @str_prefix + @publication + '_' + @article
    end
    select @conflict_table = @object_name
    exec @retcode = sys.sp_MSuniqueobjectname @object_name, @conflict_table OUTPUT
end

 
Last revision 2008RTM
See also

  sp_MSdrop_repltran (Procedure)
sp_MSmakeconflicttable (Procedure)
sp_MSmaketrancftproc (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