Solved

Sql server is not committing row

Posted on 2014-10-29
8
487 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 33

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 33

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 33

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 33

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
query optimization 6 23
Index and Stats Management-Specific tables 8 39
Display SQL 2008 last modified/update Database 11 53
sql server major issue  need help 2 51
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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