Thanks a lot, i think i am close. Although i am not really experienced into
"Hilary Cotter" wrote:
> You will have to do some existence check in your insert proc, where you
> check to see if it exists and if it does update, if it doesn't then do an
> insert.
>
> --
> Hilary Cotter
>
> Looking for a SQL Server replication book?
>
http://www.nwsu.com/0974973602.html >
> Looking for a FAQ on Indexing Services/SQL FTS
>
http://www.indexserverfaq.com >
>
>
> "Anis" <Anis@discussions.microsoft.com> wrote in message
> news:FDA0F495-3243-414D-8057-1FA162F70369@microsoft.com...
> > Thanks Hillary. I got past that part with your help.
> >
> > Now however when my replication goes through i get error 2601 (can not
> > insert duplicate key)
> >
> > Let me explain, i have multiple databases replicating to a central server.
> > I
> > have a key setup for a serial number in the tables. When the serial number
> > is
> > dplicated in multiple tables i get that error. What i want to do is to
> > have
> > the replication succe3es and overwrite the serial number (i want the most
> > uptodate entry stored in the central server)
> >
> > Is there anyways to do this? Note that i have the profile set to skip such
> > errors, so replication proceeds, but it would be nice if i can get the
> > latest
> > record replicated rather than have it skip it.
> >
> > Thanks again for your help
> >
> > "Hilary Cotter" wrote:
> >
> >> You have to comment out the update of the identity column portions of
> >> your
> >> sp's. By definition identity properties cannot be updated.
> >>
> >> --
> >> Hilary Cotter
> >>
> >> Looking for a SQL Server replication book?
> >>
http://www.nwsu.com/0974973602.html > >>
> >> Looking for a FAQ on Indexing Services/SQL FTS
> >>
http://www.indexserverfaq.com > >>
> >>
> >>
> >> "Anis" <Anis@discussions.microsoft.com> wrote in message
> >> news:6EC0886C-2B72-4410-9462-0CF6A58DA300@microsoft.com...
> >> >I have a transactional replication setup. The table has an identity key
> >> >(SID)
> >> > which is set as a unique key with no replication.
> >> > However when i try to run the distrinution agent i get error 8102
> >> > "Cannot
> >> > update identity column ESID
> >> >
> >> > any ideas?
> >> >
> >>
> >>
> >>
>
>