Solved

Row handle referred to a deleted row or a row marked for deletion.

Posted on 2010-09-01
3
2,234 Views
Last Modified: 2012-06-22
HI, I am working with linked servers and getting the error "Row handle referred to a deleted row or a row marked for deletion." Actually, the full error is
OLE DB provider "SQLNCLI10" for linked server "..." returned message "Row handle referred to a deleted row or a row marked for deletion.". [SQLSTATE 01000] (Error 7412).  The step failed.
So my destination server is failing with that error. The step it's failing on is a stored procedure on the "source" server that carries out many updates , inserts and deletes on the destination server. I am not getting this error all the time but often enough. What does this error mean and how can I resolve it?

Thank you.
0
Comment
Question by:AlizaN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:revteam
ID: 33583793
Need to check the dependent triggers or function on the tables
0
 
LVL 1

Author Comment

by:AlizaN
ID: 33586600
Check them for what?
0
 
LVL 40

Accepted Solution

by:
lcohan earned 500 total points
ID: 37096377
Considering the comments:

"The step it's failing on is a stored procedure on the "source" server that carries out many updates , inserts and deletes on the destination server."

In my opinion the issue you are having is caused by a slow "source" environment and from the little details posted above I suggest to lower the batch size you process in one cycle. Other thing to do at both source and destination - at least UPDATE SATTISTICS table_name for all tables having heavy INSERTs/DELETs and optimize as much as you can the SQL code, add missing (if any) indexes.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 r2 - Varible Table 3 39
PROPERCASE SCRIPT IN SQL 3 21
Using this function 4 39
Why is this SQL bringing back extra rows? (parsing XML data) 4 35
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 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