Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSupdate_tracer_history

  No additional text.


Syntax

-- Name:
--		sp_MSupdate_tracer_history

-- Description:
--		This procedure will update the tracer history row's distrib_commit
--		time to getdate().

-- Parameters:
--		@tracer_id	int		Id of the tracer to be updated

-- Returns:
--		0 - succeeded
--      1 - failed

-- Result:
--		None

-- Security:
--		Sysadmin/dbo (run by logreader only)

create procedure sys.sp_MSupdate_tracer_history
(
	@tracer_id	int
)
as
begin
	set nocount on
	
    
    -- security check
    -- only db_owner can execute this
    
    if (is_member ('db_owner') != 1)
    begin
        raiserror(14260, 16, -1)
        return (1)
    end

	-- update the requested tracer token
	-- if the tracer token row no longer exists then
	-- we will exit with no error because this may happen
	-- if cleanup comes bye and removes the token row
	update MStracer_tokens
		set distributor_commit = getdate()
		where tracer_id = @tracer_id
	if @@error <> 0
	begin
		return 1
	end

	return 0
end

 
Last revision 2008RTM
See also

  sp_instdist (Procedure)
sp_MSadd_replcmds_mcit (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