all groups > sql server replication > february 2004 >
You're in the

sql server replication

group:

Transactional Replication Question!!


Transactional Replication Question!! Ash
2/12/2004 2:47:30 PM
sql server replication:
Hi All,

I want to do the transactional replication. Wanted to know
what type of schema changes in Publisher database can not
be done, without initialising the Subscriber. I know that
delete a column or adding a column in a published table
can be done through two "sp_...". [ alter table commands
can not be issued on a published table - they would not be
replicated]

What about (1) Changing the width of a column.
(2) dropping a constraint on the publiushed
table
(3) creating a new constraint on the published
table.
(4) dropping an index on the published table -
would it be replicated to the subscriber.
(5) creating a new index on a published table -
will this be replicated or an index
would need to be created on the Subscriber
database.

Any article which details the schema changes in a
published table or database??

Thank You!
Transactional Replication Question!! Paul Ibison
2/13/2004 3:46:22 PM
Ash,
have entered my answers prefixed with ***....
(1) Changing the width of a column.
***Not allowed - needs reinitialisation.
(2) dropping a constraint on the publiushed
table
***Allowed for a check constraint this can be dropped at
***the publisher but is not replicated.
(3) creating a new constraint on the published
table.
***Allowed but not replicated
(4) dropping an index on the published table -
would it be replicated to the subscriber.
***Allowed but not replicated.
(5) creating a new index on a published table -
will this be replicated or an index
would need to be created on the Subscriber database.
***Allowed but not replicated.

For those actions allowed on the publisher but not
replicated, you could use On-Demand Script Execution (or
linked servers etc).
Regards,
Transactional Replication Question!! Ash
2/15/2004 5:01:12 PM
Thank a lot Paul,

I would have only one subscriber to the publisher ( my
production database). I would be using the subscriber only
in case of a failover, of the productio database.

(1) Do I need to have readonly subscriber or updatable
subscriber.

Also, just out of curiosity, Can I execute the create
index/constraint script saperately, on the subscriber -
by directly logging on to the subscriber [ instead of On
demand script execution}

Regards,
Ash.


[quoted text, click to view]
Transactional Replication Question!! Paul Ibison
2/16/2004 9:20:40 AM
Ash,
a read-only (default) transactional replication subscriber
is the correct one to use for DR. You're right, there's no
need to use the replication framework to create an index
on the subscriber. Scripts can be executed directly, using
on-demand script execution, linked servers, DTS packages -
it's much the same for a single subscriber.
Regards,
AddThis Social Bookmark Button