Solved

Sql server is not committing row

Posted on 2014-10-29
8
523 Views
Last Modified: 2014-11-13
Hi.
I have three tables. Customers with PersonID as identity PK and Functionalities with FunctionalityID as identity PK.
Between them, I have a N:M table with these both keys, as group key.
well, some records, not all, that I try to insert it mannually (with the stored procedure is the same), I got the error:
"This row was successfully committed to the database. However, a problem occurred when attempting to retrieve the data back after the commit. Because of this, the data in this row is read-only. To fix this problem, please re-run the query."
what is wrong? why only some records?

thx in advance.
0
Comment
Question by:Deraldo Silva
[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
  • 4
  • 4
8 Comments
 
LVL 34

Expert Comment

by:ste5an
ID: 40410572
So, what kind of front-end are you using?
0
 

Author Comment

by:Deraldo Silva
ID: 40410893
Sorry.

Microsoft SQL Server Management Studio                                    11.0.5058.0
Microsoft Data Access Components (MDAC)                                    6.3.9600.16384
Microsoft MSXML                                    3.0 4.0 6.0
Microsoft Internet Explorer                                    9.11.9600.17351
Microsoft .NET Framework                                    4.0.30319.34209
Operating System                                    6.3.9600
0
 
LVL 34

Expert Comment

by:ste5an
ID: 40411081
So you're working in SSMS? Then post a concise and complete example. A screenshot would also be interesting.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:Deraldo Silva
ID: 40411176
Ok. attached
problem.pdf
0
 
LVL 34

Expert Comment

by:ste5an
ID: 40412869
Well, just press the ! button - Query Designer\Execute SQL (Ctrl+R). The edit grid has some limitations.
0
 

Author Comment

by:Deraldo Silva
ID: 40412895
yep. I already did it. BUT, when I do that, the record goes away.
0
 
LVL 34

Accepted Solution

by:
ste5an earned 500 total points
ID: 40413158
So, then use a query to do your update or insert. The grid hiddes the real cause.

btw, sure that there are no triggers on those tables?
0
 

Author Comment

by:Deraldo Silva
ID: 40441008
no. there are no triggers.
so, I remove all records and recreate them. it is ok now.
thx
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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

690 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