May 24, 2012

sp_MSquery_syncstates (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_MSquery_syncstates(smallint @publisher_id
, nvarchar @publisher_db)

MetaData:

 create procedure sys.sp_MSquery_syncstates  
(
@publisher_id smallint,
@publisher_db sysname
)
as
begin
declare @retcode int

--
-- security check
-- only db_owner can execute this
--
if (is_member ('db_owner') != 1)
begin
raiserror(14260, 16, -1)
return (1)
end
-- note: obtain publisher_id via call to sp_MSvalidate_distpublisher

select publication_id from MSsync_states
where publisher_id = @publisher_id
and publisher_db = @publisher_db
end

No comments:

Post a Comment

Total Pageviews