| Author |
Topic  |
|
|
AskSQLTeam
Ask SQLTeam Question
USA
0 Posts |
Posted - 03/17/2006 : 08:26:49
|
Cory writes "I am running update scripts for the same table in 4 different databases. Structurally the are identicaly, only the data is different. For the first 3 databases, everything went smoothly. Unfortunately, when I tried to run the exact same script on the 4th database, I received this error message:
Server: Msg 512, Level 16, State 1, Procedure tUser_ins, Line 5 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated.
Here is the script:
update mhgroup.docusers set login = 'N' where USER_PASSWD is null and login = 'Y'
Any suggestions?
Thanks, Cory" |
|
|
khtan
In (Som, Ni, Yak)
Singapore
16746 Posts |
Posted - 03/17/2006 : 08:30:29
|
there isn't any subquery in the script. Maybe in the update trigger ?
KH Choice is an illusion, created between those with power, and those without. Concordantly, while your first question may be the most pertinent, you may or may not realize it is also the most irrelevant
|
 |
|
|
madhivanan
Premature Yak Congratulator
India
22461 Posts |
Posted - 03/17/2006 : 08:54:57
|
Did you post the full query?
Madhivanan
Failing to plan is Planning to fail |
 |
|
|
MARINOS
Starting Member
13 Posts |
Posted - 03/18/2006 : 07:00:16
|
| must be drop the trigger before run the query |
 |
|
| |
Topic  |
|
|
|