September 20, 2010 at 8:27 am
Hi All,
Problem 1:
I have a table with 15 k rows of datam but when i upate the columns i got the below error,
Msg 511, Level 16, State 1, Line 1
Cannot create a row of size 8077 which is greater than the allowable maximum row size of 8060.
The statement has been terminated.
But Have only 38 columns,
Please help me to update the table bulky,
Problem 2
I have a trigger on table for updated,
if i update the table if the trigger having error the updated is rollbacked, but i have exceptions handling in Trigger , but the main update also rollbacked,but i did not use any begin tran or commit in exceptions handling
Incase the trigger face the proble but the table should update..
tell me the proper excetions for trigger
September 20, 2010 at 9:26 am
What is the datatype of the column that throws the error in problem 1 ?
September 20, 2010 at 9:51 am
Saravanan_tvr (9/20/2010)
Hi All,Problem 1:
I have a table with 15 k rows of datam but when i upate the columns i got the below error,
Msg 511, Level 16, State 1, Line 1
Cannot create a row of size 8077 which is greater than the allowable maximum row size of 8060.
The statement has been terminated.
But Have only 38 columns,
Can you please post the CREATE statement for this table?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
September 20, 2010 at 2:14 pm
For problem 1 see this blog post by Kalen Delaney.
For problem 2 you are out of luck. Triggers fire as part of the original transaction and any error or rollback in the trigger will rollback the originally update. You'd want to handle the "trigger" code in your business layer or use some kind of asynchronous process, possibly involving Service Broker to do the second part.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
September 20, 2010 at 10:58 pm
Thanks a lot for valuable solutions ....
The first problem I overcame by using the Alter table with rebuild partition all now bulk update is going..
But the second problem ?
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply