Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSscript_delete_subwins

  No additional text.


Syntax
create procedure sys.sp_MSscript_delete_subwins
(
	@publication sysname		-- publication name
	,@article sysname			-- article name
	,@objid int				-- object id
	,@artid int				-- article id
)
as
begin
	declare @cmd nvarchar(4000)
			,@qualname nvarchar(517)

	exec sp_MSget_qualified_name @objid, @qualname OUTPUT
	
	-- start scripting
	
	select @cmd = N'
	if (@execution_mode = @QSubWins)
	begin
		'+N'
		'+N'-- Subscriber wins resolution
		'+N'
		if (@cftcase = 31)
		begin
			'+N'
			'+N'-- delete row with PK
			'+N'-- '
	insert into #proctext(procedure_text) values( @cmd )
	
	-- generate the delete statement
	
	select @cmd = N'
			delete ' + @qualname
	insert into #proctext(procedure_text) values( @cmd )
	exec sp_MSscript_where_clause @objid, @artid, 'upd version', NULL, 0
	
	-- continue with scripting
	
	select @cmd = N'			
		end

		'+N'
		'+N'-- 
		'+N'-- all done for conflict resolution for Subscriber Wins policy
		'+N'-- 
		'+N'
	end'
	insert into #proctext(procedure_text) values( @cmd )	
	
	-- all done
	
	return 0
end

 
Last revision 2008RTM
See also

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