Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSscriptpeerconflictdetection_customprocs

  No additional text.


Syntax
create procedure sys.sp_MSscriptpeerconflictdetection_customprocs (
	@publication	sysname, -- not null
	@cmdtxt		nvarchar(max) output
)
as
begin
	set nocount on
	
	declare	@retcode int,
			@table_created bit

	select @retcode = 0
		,@table_created = 0

	-- Pre-create #scripttext for scripting
	create table #scripttext
	(
		line_no int identity(1,1) primary key,
		line nvarchar(4000)
	)
	if (@@error != 0)
		goto Failure
	select @table_created = 1

	exec @retcode = sp_MSscriptpublicationcustomprocs @publication = @publication, @usesqlclr = 1
	if @retcode <> 0 or @@error <> 0
	begin
		raiserror(21542, 16, 1, @@error, 'sp_MSscriptpublicationcustomprocs')
		select @retcode = 1
		goto Failure
	end

	-- Dump the content of the #scripttext table to the output nvarchar(max) variable
	exec @retcode = sys.sp_MSdumpscripttabletonvarcharmax @nvarcharmaxscript = @cmdtxt output
	if @retcode != 0 or @@error != 0
		select @retcode = 1

Failure:

	if @table_created = 1
	begin
		drop table #scripttext
	end

	return @retcode
end	

 
Last revision 2008RTM
See also

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