Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Update Statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-03-28 : 08:13:49
Sandra writes "I'm trying to update a table column but I'm getting an error message "Subquery Returend More than 1 Value...."

Update table
set field1 = '0' + field1
where field1 like '2%'

Field1 is not a primary key nor is it unique. There are insert triggers on the table but that shouldn't effect my ability to update. There are about 3700 hundred records to update.

Help! "

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-03-28 : 08:17:24
Can you post the trigger you used?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2005-03-28 : 08:54:28
yeah, most likely there is an update trigger on the table that is not well written and can only deal with single updates at a time.

Luckily, it is giving an error and failing, instead of silently updating the wrong information, so you are lucky in that respect.

- Jeff
Go to Top of Page
   

- Advertisement -