查看当前数据库中的表哪些包含同步链
2013-01-30 11:26
363 查看
use distribution go SELECT source_Server=@@SERVERNAME ,source_db =A.publisher_db, source_Object_schema =A.Source_owner,source_Object_name=A.source_object, destination_Server=srv.name,destination_db=S.Subscriber_db, destination_object_schema=A.Source_owner,destination_object_name=A.destination_object ,tb.publication,tb.name as jobname FROM dbo.MSpublications AS P WITH (NOLOCK) inner join dbo.MSarticles AS A WITH (NOLOCK) on p.Publication_id = A.Publication_id INNER JOIN dbo.MSsubscriptions AS S WITH (NOLOCK) ON S.Publication_id = P.Publication_id and S.article_id = a.article_id INNER JOIN sys.servers as srv WITH (NOLOCK) ON S.subscriber_id = srv.Server_id inner join dbo.MSdistribution_agents as tb with(nolock) on S.agent_id = tb.id where A.source_object in ('tb_Reptest')
相关文章推荐
- oracle如何查看当前有哪些用户连接到数据库
- 查看当前数据库支持哪些存储引擎
- 如何查看当前数据库中有哪些触发器
- oracle如何查看当前有哪些用户连接到数据库
- 查看当前classpath路径包含哪些包
- 针对不同数据库,获取当前用户所有有权限查看的表,以及表的创建时间、更新时间、注释等信息,表中字段的相关信息(包含分页实现)
- oracle如何查看当前有哪些用户连接到数据库
- SQL 触发器-如何查看当前数据库中有哪些触发器
- oracle如何查看当前数据库基本信息
- 查询当前用户能访问哪些数据库
- 查看当前数据库的触发器
- oracle 中--怎么查看当前表空间在作什么操作?--查锁,死锁,当前执行时间长的Sql语句,没提交的事务,对象为哪些进程所用
- 查看数据库中有哪些活动的事务,对应的会话id,执行的语句
- 查看数据库中哪些用户拥有DBA权限
- MySQL查看并修改当前数据库编码
- 浏览器如IE、谷歌、火狐等,有没有查看cookie的插件?即可以查看当前浏览器中写入的当前用户登录信息有哪些。
- 查看当前数据库连接数是多少?查看当前正在执行的SQL语句?
- mysql 查看哪些host连接到数据库
- MSSQL如何查看当前数据库的连接数
- 查看当前数据库中触发器的个数