
Change 1 – Inserting Records into the Person.ContactType Tableīefore inserting records into the Person.ContacType table, let’s have a look at that table structure, a few default constraints, and extended properties redacted in the script below: CREATE TABLE. I’ll take the backup scripts for every change performed and will use those scripts to fix the SQL Replication issues. It will impact the Data integrity of the Subscriber databases. Please take extreme caution and don’t modify anything in the Production databases. Thus, we are going to make certain modifications directly in the Subscriber database for learning purposes. As discussed in my previous articles, any data changes happening on the Subscriber database in Transactional Replication won’t be visible directly to the Publisher database. Publisher Transactional Log file corruptionsīefore diving into details about the SQL Replication issues, we need to prepare our environment for the demo.Huge data changes within a single Transaction.Bulk INSERT/UPDATE/DELETE operations on Articles.Long-running Active Transactions in Publisher database.Foreign Key or other constraint violation errors.Primary Key or Unique Key violation errors.Subscriber server was not found or was not accessible.Distribution server was not found or was not accessible.Publisher server was not found or was not accessible.Distribution Agent job credential can’t connect to distribution/Subscriber database.Log Reader Agent job credential can’t connect to Publisher/distribution database.Snapshot Agent job credential can’t access Snapshot Folder path.Unmonitored Replication instances get into an uninitialized Subscriptions state.SQL Server Agent Service not set to start Automatic mode.We can categorize all SQL Replication issues into the below categories (based upon my experience): Also, the DBA must be able to solve these issues within a short time. Hence, the DBA who manages the Replication should be aware of various possible SQL Replication-related issues that might arise. The majority of customers who use SQL Server Transactional Replication mainly focus on achieving near-real-time data available in the Subscriber database instances. Now, we focus on SQL Replication issues and troubleshooting them correctly. In the previous articles, we discussed SQL Server Replication, how it internally works, and how to configure Replication via the Replication Wizard or T-SQL approach. SQL Server Transactional Replication is one of the most common Replication techniques used to copy or distribute data across multiple destinations.
