May 8, 2012

sp_MSclearresetpartialsnapshotprogressbit (Transact-SQL MetaData) Definition

Please note: that the following source code is provided and copyrighted by Microsoft and is for educational purpose only.
The meta data is from an SQL 2012 Server.

I have posted alot more, find the whole list here.

Goto Definition or MetaData

Definition:

sys.sp_MSclearresetpartialsnapshotprogressbit(int @agent_id)

MetaData:

 create procedure sys.sp_MSclearresetpartialsnapshotprogressbit  
(
@agent_id int
)
as
begin
set nocount on
declare @retcode int

set @retcode = 0

--
-- PAL Security Check
--
exec @retcode = sys.sp_MScheck_pull_access
@agent_id = @agent_id,
@agent_type = 0 -- distribution agent
if @@error <> 0 or @retcode <> 0
return (1)

update dbo.MSdistribution_agents
set reset_partial_snapshot_progress = 0
where id = @agent_id
if @@error <> 0 or @retcode <> 0
return (1)

end

No comments:

Post a Comment

Total Pageviews