Unix Technical Forum

Determining whether a table is marked for replication

This is a discussion on Determining whether a table is marked for replication within the Sybase forums, part of the Database Server Software category; --> Hi All, Can someone tell me ways of determining whether a table is marked for replication?...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:10 PM
Raj
 
Posts: n/a
Default Determining whether a table is marked for replication

Hi All,
Can someone tell me ways of determining whether a table is marked for replication?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 04:10 PM
Ed Avis
 
Posts: n/a
Default Re: Determining whether a table is marked for replication

rasu90@yahoo.com (Raj) writes:

>Can someone tell me ways of determining whether a table is marked for
>replication?


Connect to the database used by the replication server and say
something like

select o.phys_tablename,
to_database.dsname,
to_database.dbname
from rs_objects o,
rs_databases from_database,
rs_subscriptions s,
rs_databases to_database
where o.dbid = from_database.dbid
and o.objid = s.objid
and s.dbid = to_database.dbid
and from_database.dsname = 'MY_SERVER'
and from_database.dbname = 'my_database'

This will tell you all the tables in my_database that have replication
subscriptions and where they're being replicated to.

--
Ed Avis <ed@membled.com>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 04:10 PM
Bret Halford
 
Posts: n/a
Default Re: Determining whether a table is marked for replication

rasu90@yahoo.com (Raj) wrote in message news:<5d364c3b.0312240130.381c1dbc@posting.google. com>...
> Hi All,
> Can someone tell me ways of determining whether a table is marked for replication?


I'm out of the office so I can't look this up right now, but
I believe there is a bit in the sysstat or sysstat2 column
of sysobjects that indicates replication. To find out which
one, create a table, look at the values, mark the table for
replication, check the values again.

-bret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 04:10 PM
Karl Ritter
 
Posts: n/a
Default Re: Determining whether a table is marked for replication


sp_setreptable displays a list of tables that are replicated. It will only
set a table to replicate if you give it 2 arguments
ie: sp_setreptable 'table1','true'
but don't do that unless you work closely with your DBA.


1> sp_setreptable
2> go
Name Repdef Mode
------------------------------ -----------
rep_t owner_off

(1 row affected)
(return status = 0)
1> sp_setreptable rep_t
2> go
The replication status for 'rep_t' is currently true, owner_off.
(return status = 0)
1>


Karl



"Raj" <rasu90@yahoo.com> wrote in message
news:5d364c3b.0312240130.381c1dbc@posting.google.c om...
> Hi All,
> Can someone tell me ways of determining whether a table is marked for

replication?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com