Free Newsletters:
DatabaseJournal  
DBANews
Search Database Journal:
 
HOME News MS SQL Oracle DB2 Access MySQL PostgreSQL PHP SQL Etc Scripts Links Discussion
internet.com

» HOME
» NEWS
» FEATURES
» SERIES
MS SQL
Oracle
MS Access
MySQL
DB2
» RESOURCES
Products
Scripts
Links
» DISCUSSION
» TECH JOBS

Marketplace Partners
Be a Marketplace Partner




internet.commerce
Be a Commerce Partner
Compare Prices
Imprinted Gifts
Home Improvement
Free Business Cards
Promos and Premiums
Computer Deals
Online Shopping
Domain registration
SMS Gateway
PDA Phones & Cases
GPS Devices
Promotional Products
Car Donations
Imprinted Promotions




All Talk, Little Action on 'Net Neutrality Front?

Compliance Issues Still Bedevil IT

Enterprise Spending On Virtualization To Rise

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Linked Data Planet Conference & Expo

CA ERwin® Data Modeler Proven database design and modeling. Efficiently analyze, design and deploy effective database solutions. Whitepaper: Manage SQL Server Deployments
Try it free: CA ERwin® Data Modeler

Click Here
Guide to Oracle 11g and Database Migration
Oracle Database 11g includes more features for self-management and automation, which makes it easier for customers to cost-effectively manage their data. Download this Internet.com eBook for an overview of some of the new features in 11g and for an overview of the issues you need to consider as you prepare for a database migration. »
Innovate Faster with Oracle Database 11g
Read this in-depth analysis of 56 customers, which shows significant differences between the value software vendors Oracle and SAP deliver to midsize companies. »
Oracle Business Intelligence Standard Edition One
Find out how Newport Beach, CA-based Mobilitie is shaking up the telecom industry by leveraging technology to provide an entirely different financial model for deploying, upgrading, and owning wireless and wireline network assets. »
Business Intelligence and Enterprise Performance Management: Trends for Emerging Businesses
Quickly implementing an ERP software solution can be of tremendous benefit; however, companies often struggle to balance the benefits of reducing implementation time and cost with the risks of an accelerated deployment. Read this white paper to learn about easy-to-follow best practices for achieving a successful accelerated implementation. »
Making the Case for Oracle Database on Windows
Users benefit as vendors reduce enterprise complexity and deliver integration. »

Production Manager (hands on)
Aquent
US-MA-Cambridge

Justtechjobs.com Post A Job | Post A Resume
MS SQL
September 24, 2002
Troubleshooting Replication Problems
By Alexander Chigrik


Should you have problems with replication, review this troubleshooting checklist to find potential solutions.


1. Check the hardware requirements.

For SQL Server 7.0, you should have:

  • Alpha AXP, Intel or compatible platform
  • Pentium 166 MHz or higher
  • 64MB RAM or more (recommended)
  • 180MB hard disk space

For SQL Server 2000, you should have:

  • Intel or compatible platform
  • Pentium 166 MHz or higher
  • 64MB RAM or more (recommended)
  • 250MB hard disk space


2. Check the software requirements.

To set SQL Server as publisher for merge or snapshot replication, you can use any edition of Windows XP, Windows 9x, Windows NT 4.0 or Windows 2000.

To set SQL Server as publisher for transactional replication, you should use one of the following operation systems:

  • Windows NT Server version 4.0 (with Service Pack 4 or later for SQL Server 7.0 and Service Pack 5 or later for SQL Server 2000)
  • Windows NT Server Enterprise Edition version 4.0 (with Service Pack 4 or later for SQL Server 7.0 and Service Pack 5 or later for SQL Server 2000)
  • Windows 2000 Server
  • Windows 2000 Advanced Server
  • Windows 2000 DataCenter

SQL Server editions have the following restrictions:

  • SQL Server 7.0 Desktop Edition cannot be used as publisher for transactional replication
  • SQL Server 2000 Personal Edition cannot be used as publisher for transactional replication
  • SQL Server 2000 Desktop Engine cannot be used as publisher for transactional replication
  • SQL Server 2000 Windows CE Edition does not support snapshot or transactional replication, and supports only Anonymous Subscriber to merge replication.


3. Check that you've installed the latest SQL Server service pack.

To check what SQL service pack are you running, see this link:
How can I check what SQL service pack I'm running?


4. Ensure that the account the MSSQLServer and SQLServerAgent services run under belongs to the Administrators local group and is a member of the Domain Users group.

The LocalSystem account does not have network access rights, so this account should not be used if you want to use replication. The account the MSSQLServer and SQLServerAgent service runs under should be a member of the Administrators local group and a member of the Domain Users group.


5. Ensure that you have sysadmin permissions on the SQL Server.

Only members of the sysadmin server role can configure replication, so if you do not have these permissions, you will not be able to set up or configure replication.


6. Ensure that the 'trunc. log on chkpt' option is turned off if you want to set up Transactional replication.

Transactional replication uses the transaction log to capture changes that were made to data and then sends the INSERT, UPDATE, and DELETE statements to Subscribers in the same order they were made in the Publication database.


7. Check the Agent history to determine which task failed and the reason for failure.

To view the Agent history, you can do the following:

      1. Run SQL Server Enterprise Manager.
      2. Expand a server group, then expand a server.
      3. Expand Replication Monitor and choose the Agent to view history.
      4. Right-click appropriate publication and select Agent History...


8. Choose the appropriate Agent profile for your replication model.

For example, if the replication will work through the slow link, choose Slow link agent profile.

To choose the Agent profile, you can do the following:

      1. Run SQL Server Enterprise Manager.
      2. Expand a server group, then expand a server.
      3. Expand Replication Monitor and choose the Agent.
      4. Right-click appropriate publication and select Agent Profiles...

Note. You can also create your own Agent profile (click the New Profile button under the Agent profile window).


9. Set the rowcount or rowcount and checksum validation to avoid problems with data consistency.

You can use the sp_table_validation system stored procedure to test for row count or checksum differences.

You can also find a step-by-step guide illustrating the data validation process for Transactional replication at:
Data Validation for Transactional Replication

And you can find a step-by-step guide illustrating the data validation process for Merge replication at:
Data Validation for Merge Replication


10. If the Merge Agent or Distribution Agent fails on timeout, increase the QueryTimeout value in the Merge Agent or Distribution Agent profile.

The QueryTimeout value in the Merge Agent or Distribution Agent profile indicates the number of seconds before the queries issued by the agent time out.

To increase the QueryTimeout value in the Merge Agent or Distribution Agent profile, you can do the following:

      1. Run SQL Server Enterprise Manager.
      2. Expand a server group, then expand a server.
      3. Expand Replication Monitor and choose the Agent.
      4. Right-click appropriate publication and select Agent Profiles...
      5. Click the New Profile button to create the new profile with the appropriate QueryTimeout value.
      6. Choose the newly created profile.


11. If you receive an "Access Denied" error when starting the Snapshot Agent, make sure the account the SQL Server Agent runs under has default access and launch DCOM permissions.

To check/set it, you can do the following:

      1. Run Dcomcnfg.exe.
      2. Click the Default Security tab.
      3. Check that the account that SQL Server Agent runs under has default access and launch DCOM permissions.


12. Make sure that the snapshot folder is shared correctly.

Otherwise, replication agents cannot access the snapshot folder, and you will get replication error. For example, on a distributor server running Windows 9x, the snapshot folder defaults to using the local path without a share. So, you should change the local path to a network path by sharing the folder manually.


13. If you get a "Couldn't deliver schema information" error when synchronizing the Internet publications, set up FTP server at the Distributor and set the Merge Agent command line to include an FTP address.

Because a UNC path, which is used by default, works only in the Local Area Network (LAN) for Wide Area Networks (WAN), you should use a FTP address instead.


14. If conflict occurs when merging newly inserted rows that contain identity columns, you must assign each Subscriber that will insert new rows containing an identity a unique range of identity values.

Try to avoid using identity columns in the tables that will be replicated.


15. You cannot specify the uniqueidentifier column with the ROWGUIDCOL property as the primary key of the published table when you use merge publishing from SQL Server to Jet 4.0.

To work around this, you can use a composite primary key with two columns (uniqueidentifier column and integer column, for example).


16. Use a ALTER TABLE statement instead of using the Design Table in SQL Server 7.0 Enterprise Manager tool to modify a table that has the NOT FOR REPLICATION property.

Otherwise, the NOT FOR REPLICATION property on the IDENTITY column will be lost.


17. Use the Replication Conflict Viewer to get more information about conflict details.

Replication Conflict Viewer is a Wzcnflct.exe file that can be executed from the command prompt. You can run Replication Conflict Viewer from the SQL Server Enterprise Manager. To run Replication Conflict Viewer from the SQL Server Enterprise Manager, do the following:

      1. Run SQL Server Enterprise Manager.
      2. Expand a server group, then expand a server.
      3. Expand Replication Monitor and choose the article.
      4. Right-click article and select View Conflicts...


» See All Articles by Columnist Alexander Chigrik


Tools:
Add databasejournal.com to your favorites
Add databasejournal.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

MS SQL Archives

Five Trends for Application Development. Download Your Complimentary Report. Exclusive. Act Now.
IT in 2018: Download Free eBook By The Author Of "Does IT Matter?" Simple Registration Is Required.
Download: SQL Compare Pro 6--The fastest, easiest way to compare and synchronize two databases.
What's The Future Of IT? Find Out By Reading "IT in 2018" Now. Free Registration Required.
HP eBook: Using Business Service Management (BSM) to Manage Your Business Applications


Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
Mssql Equivalent Of Mysql "merge" Storage Engine dbnewbie 2 May 14th, 04:49 PM
How To Transfer Access Data Records To SQL ?? ankurdjariwala 1 May 8th, 12:24 PM
problem with federated server linking majidkhan 1 April 29th, 10:00 AM
"SELECT rowguidcol" from tables on linked servers? brentbordelon 1 April 25th, 04:12 PM







JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES