Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to update one entire column which contains 26934 records, When i try for simple update statement , it wont work ..
Posted
Updated 23-May-14 2:09am
v2
Comments
Animesh Datta 23-May-14 5:58am    
put your update statement
Peter (Member 10448473) 23-May-14 6:08am    
update dbs set db_n = '0'
but i get this error

Msg 512, Level 16, State 1, Procedure dbs_Trigger, Line 114
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Maciej Los 23-May-14 6:02am    
What's error message?
Peter (Member 10448473) 23-May-14 6:08am    
update dbs set db_n = '0'
but i get this error

Msg 512, Level 16, State 1, Procedure dbs_Trigger, Line 114
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Maciej Los 23-May-14 6:35am    
Are you sure that in line 114 is update statement? I doubt.

Drop the indexes of your table first and then update it , what happend is when you try to update it each time indexes also gets updated .. which take long time ///drop indexes first and then update and then add indexes again
 
Share this answer
 
Comments
Peter (Member 10448473) 23-May-14 6:02am    
ok wait i am going to try this then i will update the status of question..
Hi friends thank you for your answers but i find the solution .. I first remove trigger and then update the table and again added the trigger ... now it is working fine... Thank you../
 
Share this answer
 
Comments
Torakami 23-May-14 8:23am    
Sounds good

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900