April 20, 2012 at 3:25 pm
I would supply sample tables and data but to be honest I can't replicate the problem. When I right click on the table and say "Edit top 200 rows" then try to edit one of the rows I get the following error:
No row was updated.
The data in row 1 was not committed.
Error Source: Microsoft.SqlServer.Management.DataTools.
Error Message: The row value(s) updated or deleted either do not make the row unique or they alter multiple rows(2 rows).
Now I have created a duplicate table, same structure, same indexes, same data and everything works correctly. I've dropped and recreated the indexes with no luck. I've checked for duplicate entries and run a CHECKDB.
Anyone have any suggestions?
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
April 20, 2012 at 4:38 pm
Does this happen to all tables or only certain tables?
April 21, 2012 at 11:54 pm
Just the one table. I even created an exact duplicate, indexes, triggers, data everything and didn't get the same error.
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
April 22, 2012 at 12:48 am
April 22, 2012 at 1:18 am
Is there a unique or primary key on the table? I've seen that type of error from applications where the datasets couldn't identify a unique key of some sort.
----------------------------------------------------------------------------------
Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?
April 22, 2012 at 1:35 am
I've dropped both the trigger and the only unique index. Still no luck.
Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]
April 29, 2012 at 12:48 am
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply