SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

AskSQLTeam
Ask SQLTeam Question

USA
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?

Thanks,
Cory"

khtan
In (Som, Ni, Yak)

Singapore
17681 Posts

Posted - 03/17/2006 :  08:30:29  Show Profile
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

Go to Top of Page

madhivanan
Premature Yak Congratulator

India
22769 Posts

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

Madhivanan

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

MARINOS
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.03 seconds. Powered By: Snitz Forums 2000