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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Subquery returned more than 1 value
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 03/17/2006 :  08:26:49  Show Profile  Visit AskSQLTeam's Homepage
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?


In (Som, Ni, Yak)

17689 Posts

Posted - 03/17/2006 :  08:30:29  Show Profile
there isn't any subquery in the script. Maybe in the update trigger ?


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

Go to Top of Page

Premature Yak Congratulator

22864 Posts

Posted - 03/17/2006 :  08:54:57  Show Profile  Send madhivanan a Yahoo! Message
Did you post the full query?


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

Starting Member

13 Posts

Posted - 03/18/2006 :  07:00:16  Show Profile
must be drop the trigger before run the query
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000