Solved

delete replication???

Posted on 2006-07-03
6
436 Views
Last Modified: 2012-05-05
Hi,
I'm trying to delete replication, distribution database, but sql prompt me error cannot drop the database distribution because is being in use for replication, but I has disabled all replication,,,,,
0
Comment
Question by:motioneye
6 Comments
 
LVL 3

Expert Comment

by:chhapia_chintak
ID: 17029672
Execute following commands after changing your database name.


exec sp_removedbreplication 'db_name'
go
exec sp_dboption 'db_name','published',false
go
exec sp_dboption 'db_name','merge publish',false
go

Hope this helps.
0
 

Author Comment

by:motioneye
ID: 17029722
Hi,
I manage to delete the distribution db after refresh the db, but now it giving error while I'm trying with creating a distrbution db it giving me error as invalid path, this is actually 2nd instance of sql server \\LLL0039\SQL_TEST

\\LLL0039\SQL_TEST\f$\MSSQL$SQL_TEST\ReplData
0
 
LVL 4

Expert Comment

by:csachdeva
ID: 17030323
Hello,

Check Sysobjects of the database which is going fro replication then query for values having replinfo >0 and update those tables by zero and then check it.

second way is to re enable replication process and then try to disable it.

Hope that will sort out your query.

regards,
Chetan Sachdeva
0
 

Author Comment

by:motioneye
ID: 17040623
Hi,
I manage to solve the problme,
there is actually the F drive was not assigned as F$ and never been shared last time, it's now Ok after I let the drive to be share and assign with F$
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17076115
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now