Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Replication (2005)
 insert statement with merge replication.

Author  Topic 

Masje
Starting Member

1 Post

Posted - 2007-11-09 : 07:36:19
Hello,

i have a little question.
Is it possible you can't perform an insert statement on a table wich is replicated with merge replication?

I set the replication up and everything works fine, but if i want to perfom an insert statement on the table, i get an error that the values i want to add aren't the same as the one in the table.

I know that merge replication creates a new column and I think that's the problem.

Can someone help me solve this or confirm that you can't perform an insert statement on a replicated table?

Masje

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-09 : 23:51:15
What's table schema and what's your insert statement?
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2007-11-13 : 09:05:01
Sounds like you allready have the answer, its to do with the new coloum that rplication has added. Have you got a PK on the table you are replicating? If so the PK should be a GUID, and should be not for replication, this way sql server wont need to add that extra colum and you will have no more problems.
Go to Top of Page

dirtydavey
Yak Posting Veteran

80 Posts

Posted - 2007-11-13 : 09:08:25
O and you have to make sure you set the uniqueidentifier to guid
Go to Top of Page
   

- Advertisement -