Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CLR Objects - impossible to remove schema replication from..

 
   Database Help (Home) -> Replication RSS
Next:  billige preise billige autoreifen billig bruchsal..  
Author Message
geraint

External


Since: Aug 11, 2008
Posts: 2



(Msg. 1) Posted: Mon Aug 11, 2008 11:05 am
Post subject: CLR Objects - impossible to remove schema replication from them????
Archived from groups: microsoft>public>sqlserver>replication (more info?)

Hi,

I've got a database that _was_ replicated at one point. The replication has
been removed, and doesn't exist any more.

BUT - there appears to be some replication artefacts hanging around for 4
objects.
Key info:
- 4 objects in sys.objects have their is_schema_published values set to 1
- These 4 objects are the only CLR functions/stored procedures in the
database. They are written in C# in a DLL. Neither the DLL nor the objects
can be dropped/altered.
- _Every_ object (including the 4 mentioned above) in the database has
is_published = 0 in sys.objects
- I've run sp_removedbreplication on the database - it doesn't change the
value of is_schema_published for these objects.
- I've run sp_MSunmarkreplinfo on the 4 affected objects - again, no
effect
- There are no publications nor subscriptions on the database (e.g.
sp_helppublication returns nothing).

Does anyone have any idea how I can actually remove this replication so that
I can update or just delete the objects?!
Is it just a co-incidence that this replication "issue" only affects CLR
objects? Is this a bug?!

THANKS!

geraint.

 >> Stay informed about: CLR Objects - impossible to remove schema replication from.. 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 454



(Msg. 2) Posted: Sat Aug 16, 2008 12:04 pm
Post subject: Re: CLR Objects - impossible to remove schema replication from them???? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is it possible for you to drop the assemblies and other related objects?

"geraint" <ger_at_beff.co.uk> wrote in message
news:aZidnRAXZJFPkz3VnZ2dnUVZ8qydnZ2d@posted.plusnet...
> Hi,
>
> I've got a database that _was_ replicated at one point. The replication
> has been removed, and doesn't exist any more.
>
> BUT - there appears to be some replication artefacts hanging around for 4
> objects.
> Key info:
> - 4 objects in sys.objects have their is_schema_published values set to
> 1
> - These 4 objects are the only CLR functions/stored procedures in the
> database. They are written in C# in a DLL. Neither the DLL nor the objects
> can be dropped/altered.
> - _Every_ object (including the 4 mentioned above) in the database has
> is_published = 0 in sys.objects
> - I've run sp_removedbreplication on the database - it doesn't change
> the value of is_schema_published for these objects.
> - I've run sp_MSunmarkreplinfo on the 4 affected objects - again, no
> effect
> - There are no publications nor subscriptions on the database (e.g.
> sp_helppublication returns nothing).
>
> Does anyone have any idea how I can actually remove this replication so
> that I can update or just delete the objects?!
> Is it just a co-incidence that this replication "issue" only affects CLR
> objects? Is this a bug?!
>
> THANKS!
>
> geraint.
>

 >> Stay informed about: CLR Objects - impossible to remove schema replication from.. 
Back to top
Login to vote
geraint

External


Since: Aug 11, 2008
Posts: 2



(Msg. 3) Posted: Tue Aug 26, 2008 4:11 pm
Post subject: Re: CLR Objects - impossible to remove schema replication from them???? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ysgrifennodd "Hilary Cotter" <hilary.cotter.DeleteThis@gmail.com> mewn neges
newyddion:FD2DA311-F938-4B32-A293-5B6AFD9787CF@microsoft.com...

> Is it possible for you to drop the assemblies and other related objects?

Nothing related to these objects can be dropped because the objects are
flagged for replication.
Also tried stopping SQL Server and deleting the assembly DLLs, then
restarting the server, and it still won't let me drop them.

I've ended up having to copy the schema across to a new blank database, then
populating the new database with the data from the previous one.
A lot of hassle/work, but there was no other way I could find of actually
removing these supposedly replicated objects.

ARGH!

hwyl!
geraint.
 >> Stay informed about: CLR Objects - impossible to remove schema replication from.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Schema changes screw up transactional replication - Hi We have two servers with SQL Server 2005, version 9.0.3042 on both. There is a transactional replication between them but when we make schema changes on the publisher something goes wrong. We get this error message Subquery returned more than 1..

Missing owner specification in replication of schema changes - I have a problem with replicatin schema changes via ALTER TRIGGER. Wondering why they are transferred correctly, but not executed I found the problem in the exists clause which preceeds the statement. Here is the excerpt from the sysmergeschemachange of...

Merge Replication: Would changing the subscriber IP addres.. - Hi, I need to migrate 3 replicated databases to new servers running SQL2K on Windows 2003 standard, each server exist in different state with continues merge replication. Since the Databases around 40GB with big number of BLOBS I'm planning to follow...

Replication-Replication Distribution Subsystem: agent (nul.. - After migrate SQL 2000 replication to SQL 2005, by script and have maked some changes, like drop some publications and have added many articles in one, this message has appered so often: Replication-Replication Distribution Subsystem: agent (null)..

Merge Replication nested view replication problem - I am using SQL 2005 as pub and SQL EXPRESS as sub with Merge replication. Got the following error message The schema script 'CD_InTransit_v_153.sch' could not be propagated to the subscriber. Error Detail: The schema script 'CD_InTransit_v_153.sch'..
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]