Quantcast
Channel: SQL Server Replication forum
Viewing all 4054 articles
Browse latest View live

Cannot remove Replication Publication in SQL 2008

0
0

Following a datacenter disaster, where the subscription database was/is lost and gone forever ("others" decided not to restore the database which was pulling the subscription), the local "master" database hosting the "publication" chugged along fine for a few weeks, me completely forgetting about the replication settings, 'till the distribution database started growing out of control. Point is, I'd just like to remove ANY reference to ANY legacy publication/replication on this database, and can't seem to do so. Database is SQL 2008 64 BIT.

First, just right-clicking on the publication name in Local Publications and selecting delete fails with:

Could notdelete publication 'FISHREP'.

An exception occurred while executing a Transact-SQL statement or batch.(Microsoft.SqlServer.ConnectionInfo)

Target string size is too small to represent the XML instance
Changed database context to'Fish'.(Microsoft SQL Server, Error:6354)

Ok...so I tried:

DECLARE@publicationDB AS sysname;DECLARE@publication AS sysname;SET@publicationDB = N'FISH';SET@publication = N'FISHREP';USE[FISH]EXEC sp_droppublication @publication =@publication;

Which fails with:

Msg 14013, Level 16, State 1,Procedure sp_MSrepl_droppublication, Line 87
This databaseisnot enabled for publication.

Ok....so next:

EXEC sp_replicationdboption @dbname =@publicationDB,@optname = N'publish',@value = N'true';
GO

Then

EXEC sp_droppublication @publication =@publication;

Which gives a DIFFERENT ERROR

Msg 20026, Level 11, State 1,Procedure sp_MSrepl_droppublication, Line 146
The publication 'FISHREP' does not exist.

I could go on and on with the hundreds of different permutations of SQL text I've tried to remove this !)@&^@!^!@& publication, nothing works. I can't even drop the database!

Is there some magical SQL management mode that will let me get rid of this publication?


Sorting From Previous row RefNo wise

0
0
VouNo       Ref       InvDate       TCAmount
---------------------------------------------------------   
Inv/27582DO/1047 2014-03-12190                 
DO/1047WO/12792014-03-12100
DO/1046WO/12782014-03-1260
DO/1045WO/12782014-03-1230
WO/1279QTN/1529        2014-03-12 100
WO/1278QTN/1529    2014-03-1260
QTN/1529QTN/1529   2014-03-12100

I Want like below


VouNo       Ref        InvDateTCAmount
------------------------------------------------------------  
Inv/27582DO/1047 2014-03-12190                 
  DO/1047WO/12792014-03-12100
   WO/1279QTN/15292014-03-12100
     QTN/1529QTN/15292014-03-12100
  DO/1046WO/12782014-03-1260
    WO/1278QTN/15292014-03-1260
     QTN/1529QTN/1529 2014-03-12100
  DO/1045WO/12782014-03-1230
    WO/1278QTN/15292014-03-1260
   



No availlable article when publishing from Oracle

0
0

Hi,

I have an Oracle 10g database that I want to configured as a publisher to my SQL Server 2012 distributor/subscriber.

No issue on configuring  my distributor and creating my Oracle publisher. When I want to add article to publish (Transactional replication), I can't see anything available in the list. I'm stuck with that error:

"Oracle Publisher 'ServerName' contains no objects that can be replicated. The most common reasons for this are missing permissions and not having primary keys..."

My user has full access to every tables (I can query them with openquery without any issue). I've also granted all required permissions as described by Microsoft MSDN article (Grant create view and all other necessary stuff) to configured the replication.

Help on this would be greatly appreciated.

Error 21397 - Retry the operation again with a more up-to-date log, differential, or full database backup ?

0
0

I got this error when configure Peer-To-Peer at the last step.

Msg 21397
The transactions required for synchronizing the nosync subscription created from the specified backup are unavailable at the Distributor. Retry the operation again with a more up-to-date log, differential, or full database backup.

I try to understand what going on by search the internet and found some way to resolve, i do all of them carefully:

- Disabled the 'Distribution clean up'

 

- Increased the retention time

- Backup the database and restore again.

I try to do it several times but still got the error above. I try to do it on another database and it work, but not work on the database i want to configure Peer-To-Peer. I try to understand what happen and need a solution to resolve it as soon as possible, please help me.


Replication checking

0
0

we are configured transaction replication from production Site to DR Site.

here how we will check our replication working or not. with out using "Replication mintier" is there any other way to check replication status. 

Sync AD user credentials with a SQL database

0
0

Hi folks!

I need some help to how Sync the user and password from my Active Directory, to a SQL Database.

Actualy, my enviroment have a database with users and password added, my custom applications uses it like a passport, but now I want to use Active Directory to control these users, but I can't use windows authentication in my old apps. I was reading about Forefront Identity Manager to do this, but I need a free solution.
The Sharepoint database sync user credentials with AD? Any ideas how I can do this?

Thanks in advance!


MCTS Exchange 2010. @pedrongjr


SQL 2008R2 - The merge process could not set the status of the subscription correctly??

0
0

Hi Everyone,

I have SQL Server 2008 R2 with push subscriptions enabled to 10 computers. It was all working and replicating fine till yesterday when out of no where I have been receving the following errors for each of the subscriptions :

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Error messages:

  • The merge process could not set the status of the subscription correctly. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200963)
    Get help: http://help/MSSQL_REPL-2147200963
  • Could not find stored procedure 'dbo.sp_MScheckIsPubOfSub'. (Source: MSSQLServer, Error number: 2812)
    Get help: http://help/2812

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have tried a lot of searching on various SQL Server forums but have not been able to find out the exact cause for it and how to solve it.

Any help would be greatly appreciated.

Thanks

transactional replication on big tables.

0
0

Hi

My table has  175203942 rows and the size is 361 GB used for datawarehousing, I am going configure transactional replication on this table.  how much time it will take to create snapshot to other server.?  Please advice

My version is : Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64)   Mar 29 2009 10:11:52   Copyright (c) 1988-2008 Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )

Thanks


HELP ME!!! I have a problem regarding SQL Server 2008 R2 Replication! :((((

0
0

Good day!

I'm having a big problem in my SQL Server 2008 R2... I can't see the "Local Publication" under the Replication...

About not installing it, I guess that's not true because I checked all the features to install.

Is this a bug? Do I need to re-install my SQL Server 2008 R2? Or simply, do I need to do something simple without re-installing it?

PLEASE HELP....

See Link below:

http://oi59.tinypic.com/4jx3y1.jpg

The row was not found at the Subscriber when applying the replicated command.

0
0

Hello,

I am getting this error can someone help me plz

The row was not found at the Subscriber when applying the replicated command.

why the publisher failed to deliver the row to the subscriber

How can I replicate a source table that doesn't have any primary keys?

0
0

We have transactional replication setup in our workplace.

In the source database, there are some tables that do not have any primary key.

1) How can I get these tables to replicate in the current scenario?

2) Is it possible to introduce foreign elements in a replicated instance of the database?

Example, additional records in a table that don't exist in the source or additional tables in the database?

Distribution agent not running

0
0

Hello All,

One distribution agent is not running continuously. The SQL job is scheduled to run when 'Start automatically when SQL Server Agent starts'. It was running fine but now the status in replication monitor shows Not running. I manually selected Start Synchronizing and it runs just for a few seconds and replicates transations but then goes back to Not Running status.

Can someone please help me?

Thanks,

Transactional Replication and Database Snapshots

0
0

Hi,

  1. I have a database that is a publisher in transactional replication.
  2. I create a database snapshot on that database and then let transactions replicate to the subscriber(s).
  3. I revert the database back to the snapshot.

What happens to replication?


Dan Jameson
Associate Director of IT/DBA
Children's Oncology Group
http://www.ChildrensOncologyGroup.org

Replication Issue.

0
0

Hi team,

when i tryingto configure the transaction replication publication showing the bellow  error, please give me the solution ASAP. 

Replication Issue

0
0

HI team,

while i am trying to enable the database replication under publication properties getting below error,

please reply Answer ASAP.

i am using this query also but no use.[

use master
execsp_replicationdboption @dbname ='mydbname',
@optname = 'publish',
@value = 'true'

go

] error message is :

Msg 6314, Level 16, State 1, Line 2
Collection specified does not exist in metadata : 'max'



Creating a publication - does box location matter?

0
0

My company has some equipment that relies on SQL Server 2005, which is on a single computer (call it 'Cloverleaf').  We have a second computer ('backup') that also has SQL Server 2005 installed, and they are connected over our company LAN.

I would like to set up the 'backup' computer as a replication subscriber for the 'Cloverleaf' computer that runs our equipment.  I want the 'backup' computer to be the distributor as well to save processing power on the computer running the equipment.

So, I set up the 'backup' account as a distributor.  Next is to designate a publisher.  Is it OK if, on the 'backup' computer, I connect to the 'Cloverleaf' computer and set it up as a publisher that way?  Or, do I need to go out to the 'Cloverleaf' computer and use that computer to set up the publisher?


SQL server Replication and snapshot

0
0

Hi All,

We are faced with a scenario where the Replication snapshot folder is corrupted.

We have the subscibers as SQL Server Compact(PDA) and dont want to re-install the PDA.

Is there a way to recreate a Snapshot folder, and the PDA's dont have to be re-setup.

Quick Advise is really appreciated.


Joji

Replication server is growing fast

0
0

i have a reporting server that is also a subscriber in replication environment,

the C drive is growing very fast

where to look in to?


k

sp_repladdcolumn does not allow adding columns of datatypes that are new to this release.

0
0

Hello,

When I try to add a column to published database I get this below error

Msg 25014, Level 16, State 1, Procedure sp_repladdcolumn, Line 378
sp_repladdcolumn does not allow adding columns of datatypes that are new to this release.

Version: SQL 2005 9.0.5000

Database compatiblity:90

Command:sp_repladdcolumn 'STOCK', 'UDe1', 'XML', 'all', null, 0, 0

 This commands seems to have worked on different server. Not sure why I get this strange error. 

Any suggestion is appreciated.

Thanks

Suresh

transactional replication locks

0
0

I am trying to understand some of the doubts while working on transactional replication in SQL server 2008 R2. Even though I was reading it in TechNet, may be some one can explain the way easy to understand about how locks are placed in the publisher while taking snapshot and at the subscriber while applying the snapshot.  Below are my questions.

  1.  When reinitializing the subscription with new snapshot, shared locks are placed on the article at the publisher, so users can read the data but they cannot update while snapshot is taking right?
  2.  Do the distributor agent copies the data using the snapshot to the subscriber by overwrite the existing data or deletes all the data and writes with new one?
  3. While snapshot is being applied what lock is placed on the subscriber?
  4. Let’s say if reporting team is running some reports at the subscriber, do the distributor agent will wait until the report to finish then applies the snapshot?

Thank you so much in advance.


VR

Viewing all 4054 articles
Browse latest View live




Latest Images