Transactional Replication - Modifying Target Tables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DickChristoph

    Transactional Replication - Modifying Target Tables

    Hi

    I tried posting this query in microsoft.publi c.sqlserver.pro gramming but got
    no response.

    I am new to replication but I am trying to setup up a transactional
    replication of tables from one database to another in MSSQL 2000 (SP2).

    My target tables have primary keys defined. Under publication properties I
    go to the snapshot tab and for each table I clear the check box that says
    "Drop the existing table and re-create-it" and "clustered Indexes." On this
    page the nothing is checked. for each table.

    Whenever the subscription is reinitialized it drops the primary keys on my
    target tables
    and replaces them with a unique clustered index on the column that used to
    be
    the Primary key.

    Is this normal? Is there anyway to stop it from doing this?

    I don't plan to send the snapshot more than once and let transactional
    replication take over for keeping my source and target in sync, but if I
    ever have to reinitialize the subscription, it would seem that I (or
    someone) will
    have to take the a second step of manually dropping these clustered indexes
    and recreating the primary keys on the target table.

    Thanks in advance.

    --
    -Dick Christoph



    --
    -Dick Christoph
    dchristo@mn.rr. com
    612-724-9282


  • Erland Sommarskog

    #2
    Re: Transactional Replication - Modifying Target Tables

    DickChristoph (dchristo99@yah oo.com) writes:[color=blue]
    > I tried posting this query in microsoft.publi c.sqlserver.pro gramming but
    > got no response.[/color]

    Did you try microsoft.publi c.sqlserver.rep lication? That's where the
    replication wiz people hang out.
    [color=blue]
    > I am new to replication but I am trying to setup up a transactional
    > replication of tables from one database to another in MSSQL 2000 (SP2).[/color]

    SP2?

    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    • DickChristoph

      #3
      Re: Transactional Replication - Modifying Target Tables

      Thanks Erland, I didn't know there was such a group. I'll go there now.

      Yes SP2. Thats what I have I my home machine from an old MSDN Universal
      subscription. But the problem is also happening where I just started
      working. I assume they are more current although they are on SQL 2000.

      --
      -Dick Christoph
      "Erland Sommarskog" <esquel@sommars kog.se> wrote in message
      news:Xns97B7F1B 3C425FYazorman@ 127.0.0.1...[color=blue]
      > DickChristoph (dchristo99@yah oo.com) writes:[color=green]
      >> I tried posting this query in microsoft.publi c.sqlserver.pro gramming but
      >> got no response.[/color]
      >
      > Did you try microsoft.publi c.sqlserver.rep lication? That's where the
      > replication wiz people hang out.
      >[color=green]
      >> I am new to replication but I am trying to setup up a transactional
      >> replication of tables from one database to another in MSSQL 2000 (SP2).[/color]
      >
      > SP2?
      >
      > --
      > Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
      >
      > Books Online for SQL Server 2005 at
      > http://www.microsoft.com/technet/pro...ads/books.mspx
      > Books Online for SQL Server 2000 at
      > http://www.microsoft.com/sql/prodinf...ons/books.mspx[/color]


      Comment

      Working...