Groups | Blog | Home
all groups > sql server replication > november 2004 >

sql server replication : can't delete record from certian table -replication related?


djc
11/19/2004 4:05:08 PM
Windows 2000 Server sp4, SQL Server 2000 sp3

I get the error below when attempting to delete a record from a table called
Monitor directly from Enterprise Manager GUI.
error:
[Microsoft][ODBC SQL Server Driver][SQL Server][Invalid Object Name]
'tsvw_KJDKFAJDFKJAKLFDJKLAJDFKJASKFDJKAJDF'
[Microsoft][ODBC SQL Server Driver][SQL Server][Invalid Object
Name]UserA.Monitor
[Microsoft][ODBC SQL Server Driver][SQL Server][Invalid Object Name]
'ctsv_DKFJDKJFKDJFKDKFJDKJFIEJIEJIEJFIEJFKJDKJ'

The KDJFKDJFKJDF above is obviously not exact. The actual error contains a
long string of random characters though.. If i'm not mistaken these are
system generated names for views related to replication.

1) could this be replication related?

2) Important note: UserA is NOT the current owner of the Monitor table!
UserA used to own the table but due to replication issues the owner was
changed to dbo a long time ago. ?? Can I safely run the sp_changeobjectowner
procedure specifying dbo again or would I need to drop the merge replication
in order to do that?

3) I verified that the tsvw_ect... and the ctsv_ect... do not exist in the
database?

any suggestions about how to get to the bottom of this would be GREATLY
appreciated. Thanks.

djc
11/23/2004 7:37:56 AM
yep. It turned out to be an old trigger left from a previous replication
setup. Thanks for the reply.

[quoted text, click to view]

Mary Bray
11/23/2004 5:24:04 PM
Have a look to see if there are any triggers or foreign key constraints that
are causing this.

--

Mary Bray [SQL Server MVP]
Please reply only to newsgroups

[quoted text, click to view]

AddThis Social Bookmark Button