我有一个脚本可以向我展示出版物的复制文章:
declare @publication_name sysname = 'my_pub'
declare @database_name sysname = 'my_db'
use [my_db]
select ServerName = @@servername
,publication_name=p.name
,p.repl_freq
,p.status
,p.sync_method
--,snapshot_job_name=j.name
,p.independent_agent
,p.immediate_sync
,p.allow_anonymous
,p.replicate_ddl
,article_name=OBJECT_SCHEMA_NAME(a.objid) + '.' + OBJECT_NAME(a.objid)
,a.pre_creation_cmd
,pre_creation_cmd_desc = CASE a.pre_creation_cmd
WHEN 0 THEN 'none - Doesn''t use a command.'
WHEN 1 THEN 'drop - Drops the destination table.'
WHEN 2 THEN 'delete - Deletes the destination table.'
WHEN 3 THEN 'truncate - Truncates the destination table.'
ELSE 'Not known - Radhe Radhe'
END
FROM dbo.syspublications P
INNER JOIN dbo.sysarticles A
ON P.pubid = A.pubid
left outer JOIN msdb.dbo.sysjobs j
ON j.job_id = p.snapshot_jobid
where p.name = @publication_name
但是,在我目前正在研究的这个特定出版物中,我也有功能,而这些对象没有显示在上面的查询中?
我知道它们在那里,我怎样才能看到它们?