all groups > sql server replication > july 2004 >
You're in the

sql server replication

group:

cannot remove repl... cannot delete database


cannot remove repl... cannot delete database djc
7/7/2004 10:59:18 AM
sql server replication:
I cannot delete a database becuase it ways its part of replication. I
removed replication via the EM GUI but it failed. All GUI elements are gone
but when I run sp_removedbreplication in query analyzer I get this:

Server: Msg 3701, Level 11, State 5, Line 1
Cannot drop the table 'HesstechUser.conflict_MergeReplLIVE_VendorCustomer',
because it does not exist in the system catalog.

the weird thing is that the table mentioned in the error should not (and
does not to my knowledge) exist in this database? it exists in a different
database on the same system?

any help is greatly appreciated.

Re: cannot remove repl... cannot delete database djc
7/8/2004 9:04:35 AM
thanks for the info...

1) I ran a script posted by Hilary Cotter (thank you Hilary!) that I think
cleaned things up for me... BUT it will only happen again due to the issue
you just informed me about. So I am VERY interested in finding out how to
correct this. Please do let me know.

2) Can I change the owner of tables? if so how? The only reason they are not
owned by dbo is due to how our db person moved them to sql server from MS
Access. I would like them to be owned by dbo.

any help is GREATLY appreciated.
thanks!

[quoted text, click to view]

Re: cannot remove repl... cannot delete database djc
7/8/2004 9:09:11 AM
oh one more very important question:

what else do I need to worry about due to this 'owner not being dbo'
problem? I currently have the same setup on a production server that is
about to go live. The issue I just cleaned up (I think) was on a test
server. You said 'various merge replication related actions are failing
because of that'. Is the integrity of my data in danger? can things get out
of sync? Do I need to think about stopping this from going live?

please let me know more. Thanks.

[quoted text, click to view]

Re: cannot remove repl... cannot delete database Kestutis Adomavicius
7/8/2004 9:17:58 AM
As far as I experienced it, SQL Server 2000 (at least SP3 and SP3a) does not
handle correctly merge replication of tables owned not by dbo. Various merge
replication related actions are failing because of that. One you just
mentioned - you can not properly drop merge replication, because it leaves
conflict tables. As you noticed from error message it tries to drop table
'HesstechUser.conflict_MergeReplLIVE_VendorCustomer'. I guess on your
published database you should find table
'dbo.conflict_MergeReplLIVE_VendorCustomer'.

If you can find it then I can provide you with a solution to this problem -
but it means fixing of couple of system stored procedures. Fixes are
straight forward - correct handling of object owners.

--
Regards,
Kestutis Adomavicius
Consultant
UAB "Baltic Software Solutions"

[quoted text, click to view]

AddThis Social Bookmark Button