April 16, 2012

sp_cdc_help_jobs (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_cdc_help_jobs()

MetaData:

 create procedure sys.sp_cdc_help_jobs  
as
begin

declare @retcode int

--
-- Job security check proc
--
exec @retcode = [sys].[sp_MScdc_job_security_check]
if @retcode <> 0 or @@error <> 0
return(1)

-- Verify database is currently enabled for change data capture
if ([sys].[fn_cdc_is_db_enabled]() != 1)
begin
declare @db_name sysname
set @db_name = db_name()
raiserror(22901, 16, -1, @db_name)
return 1
end

exec @retcode = sys.sp_cdc_help_jobs_internal

if @@error <> 0 or @retcode <> 0
return 1

return 0
end

No comments:

Post a Comment

Total Pageviews