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

Will updating a column size on the Oracle publisher table require a publication drop and recreate?

$
0
0

Hello,

There's a column on the oracle publisher side that needs to be change to a char(50) from a char(2).  Do I need to drop the publication and re-create it?  I'm know I will need to update the current size on the SQL table as well.  I looked at this article http://msdn.microsoft.com/en-us/library/ms152499.aspx and it doesn't say anything about modifying datatypes.  Under 'Making Changes to a published object', it states the following:   

The following actions require you to drop the publication, perform the operation, and then recreate the publication:

  • Truncating a published table.

  • Renaming a published table.

  • Adding a column to a published table.

  • Dropping or modifying a column that is published for replication.

  • Performing non-logged operations.

 It says nothing about modifying datatypes.  Anyone comes across this before?

Tae


tae yang


Error: The schema script 'TableName_3.sch' could not be propagated to the subscriber.

$
0
0

Hello all,

I am trying to set up merge replication. The merge agent does not run and gives the following error message:

The schema script 'TableName_3.sch' could not be propagated to the subscriber.

The snapshot folder has maximum permissions, but the agent still fails.

What on earth could the trouble be?

Cheers...


BI Consultant, MCP

Microsoft SQL Server 2005 Enterprise Edition License - Need Help

$
0
0

Hi,

I'm working as an IT Manager. In our office, we are using MS SQL Server 2005 Enterprise Edition. This was installed before i join our company. So i don't have any idea about the License. When i checked with our vendor they told we have purchased a MS SQL Server 2008 Enterprise License, i know with this license we could install MS SQL 2005 Enterprise. But I'm not sure whether the previous IT used this License. I  need help from some expertise regarding this matter that how i can check this in my SQL Server.

From one the forum from Google they asked me to do the following:

  • SELECT SERVERPROPERTY('LicenseType')
  • SELECT SERVERPROPERTY('Edition')

And my results are :

  • DISABLED
  • ENTERPRISE EDITION

So let me know what does the above mean? If "Disabled" means it's not licensed then is there any way to make to my SQL Server 2005 to make my SQL licensed by getting my license details from our vendor to get Product Key from Microsoft. Please help me...

Best Regards

Shijin Prasad, MCITP, MCTS, B-tech

IT Manager


Shijin Prasad

Replication fails with weird error

$
0
0

Hi All,

I have peer to peer replication configured between 2 SQL server 2008 R2 enterprise servers. While replication is running fine from Node A to Node B, it fails from Node B to Node A with error below. I have verified and found that all configurations are fine. can you let me know if you have faced the same error?

Database 'dbo' does not exist. Make sure that the name is entered correctly.


SugeshKumar

The schema script 'Office_488.sch' could not be propagated to the subscriber.

$
0
0

I am new in Merge replication and don't know where to get help.

i have two databases on same server and one is working fine and secondone is giving me below error. Althought everything is same as it. i have even tried to change not replicate table schema but still getting following error. Can you please help me

Error messages:
The schema script 'Office_488.sch' could not be propagated to the subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201001)
Get help: http://help/MSSQL_REPL-2147201001
Could not drop object 'dbo.Office' because it is referenced by a FOREIGN KEY constraint. (Source: MSSQLServer, Error number: 3726)
Get help: http://help/3726

SQL Server MIrroring

$
0
0
We have an MSDN subscription and I was wondering if I could get some more information on a SQL server command.

We are testing a mirrored SQL server setup and notice it having a large performance effect on some transactions in our system. We found and article here:
http://blog.rolpdog.com/2010/04/sql-server-database-mirroring-woes.html?m=1
Which points to a command DBCC TRACEON(3499, -1).
Could you tell me what the command does exactly? Many thanks

SQL 2008 R2 repplicate production database to test database in SQL cluster

$
0
0

Hello,

We have a sql 2008 R2 cluster with two nodes in our production environment.
On this cluster is a database that we want to update/replicatie to a sql cluster in our test network.
This has to be done on a daily basis. So no need for transaction log replication.

The production network and the test network are seperated by a firewall.
The test network is a copy of production and therefore the domain name is the same as the computernames and accounts.

I would like to know if there is a way to replicate automatically?

Any help would be great!

Regards,

Ron

Replicate non clustered indexes only

$
0
0

I need to replicate non clustered indexes only (not records) from publisher to subscriber to avoid downtime.

Is there any option in Transaction replication SQL 2008 R2 to copy only non clustered indexes on reinitialize of transaction replication.


schema options for merge replication

$
0
0

From sql server BOL: to change xml to ntext have to use below schema option

0x10000000

Converts xml columns to ntext on the Subscriber.

what should be i using if i dont want to convert xml to ntext

does it require to reinitialze database in merge replication?

Thanks

Example to Automate SQL Compare to "Restore" items from Subscriber that Differ from Publisher as portion of refreshing test from prod

$
0
0

Hello,

I opened an earlier thread asking about the best method to refresh a test/QC database with data from production.  The catch is that both are acting as publishers to other databases and I don't want to interfere with that.  Hilary Cotter and Stan210 gave me highly useful responses.  I want to go with the restore from backup/recreate replication/"reapply" the objects and privileges from test that differ from prod method that Hilary proposed but some of it is beyond my current skill set. I closed the thread as maybe I was extending the conversation too long or changing the initial topic.

How do I automate the Redgate SQL Compare portion?  I may be mistaken, but I have the impression that if you have the non Pro version of REdgate SQL Compare you can acquire the API and  use .NET to code this.  If you have the Pro version you can use a command line interface (not use .Net) to SQL Compare.  With either option, does anyone have an example or script that they would be willing to share? If not, if you have some pointers on how to get started, (links or suggested resources are fine too), I would appreciate it very much. Thanks.

Merge Replication: Process could not enumerate changes

$
0
0

Running merge replication (pull) downloads from Pub to subscribers work fine

Uploading a change from subscriber to publisher generates message (logging turned on):

The merge process could not enumerate changes at the subscriber"
Source: Merge ReplicationProvider

Number: -2147200999
No other errors
Removed and rebuild replication, problem remains

Help needed as to possible causes of this problem

how to copy identity column to subscriber

$
0
0

Hi all,

I m trying to setup replication between 2 servers. ServerA has around 10 tables that needs to be copied to ServerB 10 tables. Both servers has same exact copy of tables.

Now all these 10 tables have identity columns + other data that needs to be copied to ServerB twice a day.

One way traffic. Only requirement is that at end of day both tables are sync with same data and identity values.

What kind of replication will fit here?

How to have same ID column for both tables?

Any help would be appreciated.

Thanks,

Should I buy an out-of-print copy of this book or has too much changed?

$
0
0

I am seriously considering buying an out-of-print copy of this book:

A Guide to SQL
Server 2000 Transactional and Snapshot Replication

by Hilary Cotter (ISBN: 978-0974973609)

($99 because it's rare - *ouch*) I'm hoping someone can tell me if I might want to reconsider because it describes SQL Server 2000 replication or if I would still benefit from it.  I just don't see any book that's more recent that gets into enough detail.  I have seen many chapters on replication and they pretty much leave it at the basics (comparing snapshot, transactional, merge; basic descriptions of the publisher, distributor, subscribers and the minimum about how to use the wizards, etc.) Of course I've seen very good papers and sources online though. 

If anyone who has experience with the book could give me their opinion about whether too much has changed, I'd appreciate it.

Thanks.

I initialized a transactional subscription using a backup (from a logical device) instead of a snapshot. However, when I need to reinitialize the subscription (eg. after adding new articles to the publication) the re-initialization uses a snapshot, lastin

$
0
0
I initialized a transactional subscription using a backup (from a logical device) instead of a snapshot.
However, when I need to reinitialize the subscription (eg. after adding new articles to the publication) the re-initialization uses a snapshot, lasting very long time.
Is there any way to force it to use the logical device specified during the subscription creation?

ashok nayak

"Replication-Replication Merge Subsystem: agent failed. The merge process could not query the last sent and received generations"

$
0
0
We are receiving below alert frequently. When we get this alert i am checking repliction monitor and row count in both the tables and found everty thing is fine..

Alert Description:"Replication-Replication Merge Subsystem: agent failed. The merge process could not query the last sent and received generations"

Could you please give me more information for this issue and what is reason for we are getting these alerts.

ashok nayak


How I can add column to table on Subscriber ? This column exist on Publisher, but don't include in merge replication.

$
0
0
I use merge replication and I want add column to table on Subscriber, but when I tried run
alter table ... add [object_id] int null
I got

"Msg 21531, Level 16, State 1, Procedure sp_MSmerge_altertable, Line 367
The data definition language (DDL) command cannot be executed at the Subscriber. DDL commands can only be executed at the Publisher. In a republishing hierarchy, DDL commands can only be executed at the root Publisher, not at any of the republishing Subscribers."

How I can add column to table on Subscriber ? This column exist on Publisher, but don't include in merge replication.

ashok nayak

Error running sys.sp_validate_replica_hosts_as_publishers

$
0
0

I am working with setting up Replication Publishers in AlwaysOn Availability Groups, and after running sp_redirect_publisher, there is a new stored procedure in SQL 2012 called sys.sp_validate_replica_hosts_as_publishers that validates your configuration is correct.  Occording to BOL this procedure creates a temporary linked server to the nodes in the Availability Group and validates they are suitable for handling replication and uses the windows credentials of who is currently logged in.  I am logged in as a windows account that is both domain admin as well as SQL sysadmin on all my instances but keep getting an error when running this procedure.

Here is the code I am running from the distributor

declare @redirected_publisher sysname
exec sys.sp_validate_replica_hosts_as_publishers 
     @original_publisher = 'SQL1', 
     @publisher_db = 'TestPub', 
     @redirected_publisher = @redirected_publisher output
select @redirected_publisher

I am getting the following error.  I am running SQL 2012 SP1 and am wondering is I am missing some sort of security configuration or if this is a bug that needs to be filed

Msg 21892, Level 16, State 1, Procedure sp_hadr_validate_replica_hosts_as_publishers, Line 60
Unable to query sys.availability_replicas at the availability group primary associated with virtual network name 'CHAD-PUB-AGList' for the server names of the member replicas: error = 18456, error message = Error 18456, Level 14, State 1, Message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'..',



Convert DTS to SSIS | Document SSIS | 30+ SSIS Tasks | Real-time SSIS Monitoring | Quick Starts | BI Blitz

Can multiple hostname values go to the same subscriber database?

$
0
0

Our current replication uses a location column as the hostname value to differentiate where we want our partioned data to go to which server.  Now we are being asked to have multiple locations replicated to the same subscriber.  For instance:

Location    Data

1               Data1

2               Data2

Subscriber currently has subscription set to HOSTNAME = 1.  So currently it will get the first line.  Is there a way to get the second line without modifying any db schema?  I know i could add an additional column and put a rule in place that translates which locations go to which subscriber but was just curious if theres a way to specify multiple hostname values for a subscriber?

Unable to validate replication with sys.sp_validate_replica_hosts_as_publishers for Availability Group

$
0
0

Im getting error the following error when trying to run the above SP to validate my replication schema:

Msg 21892, Level 16, State 1, Procedure sp_hadr_validate_replica_hosts_as_publishers, Line 60

Unable to query sys.availability_replicas at the availability group primary associated with virtual network name 'MyAGListener' for the server names of the member replicas: error = 18456, error message = Error 18456, Level 14, State 1, Message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'..',

I've already tried to manually register the AG listener name with setSPN, but I'm still getting the error, and when I check the connection with sys.dm_exec_connections on the primary node and AG listener, it still shows as connecting using NTLM instead of KERBEROS.

Am I missing something?


Diane

Microsoft.SqlServer.Replication.dll not found

$
0
0

Hi Everyone,

I have a scenario where I have a publication ready for merge replication. I have also created the Subcribers. 

Now I want to write a small C# application to get my data synchronized using RMO objects.

But unfortunately I am unable to find Microsoft.SqlServer.Replication.dll.

In my server I have SQL Server 2008 R2.

And all my subscriber systems have SQL Server 2008 R2 Express Edition installed.

Now where can I find the Microsoft.SqlServer.Replication.dll

Thanks

Prabhanjan


Prabhanjan Kumar Mahapatra

Viewing all 4054 articles
Browse latest View live


Latest Images