Solved

Sql server is not committing row

Posted on 2014-10-29
8
450 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
user defined date datatype in SQL Server- can it be overdone.. 6 32
sql query 8 48
SSRS  - Dropdown with Null 3 24
SQL Server tables join on parse list 6 22
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 …
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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