Thanks in advance..
What do you think I can do? they told me that modifying is easier to do in
SQL2000 :(
Thank you for your help.
"Paul Ibison" <Paul....@Pygmalion.Com> wrote in message
news:D928C05E-A385-4F41...@microsoft.com...
> Fulya,
> this is a common request, but in SQL Server 2000 is not possible directly
(see Yukon!). There is a workaround:
> You could add a new column with the new datatype (sp_repladdcolumn), do an
update on the table to populate the column, then drop the column
(sp_repldropcolumn). Do this again to create the column having the same
original name.
> Regards,
> Paul Ibison (www.replicationanswers.com)
Thank you so much,
Fulya
"Paul Ibison" <Paul....@Pygmalion.Com> wrote in message
news:2C50B733-5AB9-4B6E...@microsoft.com...
> Fulya,
>
> Execute sp_repldropcolumn with a value of 0 for the
@force_invalidate_snapshot parameter. This parameter affects only
publications created with the immediate_sync option. To see if this option
is set for your subscription use:
>
> sp_helpsubscription @publication = 'northwindnewregion' : synchronization
type = 1 so automatic ie immediate_sync
>
> sp_repldropcolumn @source_object = 'tablename'
> , @column = 'columnname'
> , @force_invalidate_snapshot =0
> , @force_reinit_subscription = 0
>
> This should prevent the need for reinitialization and a new snapshot.
There's no need to reinitialize subscribers manually - this definitely will
cause the snapshot to be applied. All you need to do is synchronize.
>
> Regards,
> Paul Ibison
>
You can achive all of this troug the enterprise manager. Here's what you do:
Right click on the publication, select properties, then go to 'filter
collumns', click on 'add columnt to a table' (or 'drop selected collumn').
SQL server will warn you about the compatibility issues, ignore that if both
your publisher and subscriber are SQL2000. They say you don't need to
recreate the snapshot, but I did so (my tables aren't holding large amounts
of data). Voila, you added new column to a publicated table.
If you want to add a new table to publication - well, you can't. But,
nothing is stopping you from adding a new publication with just one article
- the newly created table.
Mike
--
"I can do it quick. I can do it cheap. I can do it well. Pick any two."
Mario Splivalo
mspl...@jagor.srce.hr
Thanks,
Fulya
"Mario Splivalo" <ma...@fly.srk.fer.hr> wrote in message
news:slrnc4ooi...@fly.srk.fer.hr...
Yes - it is possible, but not from the gui. You can use sp_addarticle followed by manually creating scripts and sp_addsubscription (push) or sp_refreshsubscriptions (pull).
Regards,
Paul Ibison
Bhm?
That's odd. Do you have all of you tables publicated in one publication? If
that's the case, you should reconsider your replication design.
When you recreate the snapshot, all the tables within that publication will
be taken into consideration :) by the snapshot agent.
> Yes - it is possible, but not from the gui. You can use sp_addarticle followed by manually creating scripts and sp_addsubscription (push) or sp_refreshsubscriptions (pull).
Have you ever done that? Somehow it seems for me it's easier to drop the
publication and recreate it all over again.
Yes, it does seems like the best solution, but, when I tried something like
that in real life, i ended up with broken replication :)
That why I was suggesting 'all over again' solution... in my case, it would
have saved me a lot of time.
I will definitly do so, thank you for the link. I'll post the results here.