Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Under SS 7.0 The code fragment

Status
Not open for further replies.

jfield817

Programmer
Joined
Jun 2, 2000
Messages
153
Location
US
Under SS 7.0

The code fragment below produces a predictable error on our data since the query returns more than one record

select X from Tablename where
1 = (select X from Tablename)



[Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

However not all of our servers seem to be generating
the error .... Any reason why the above code
fragment would not consistently blow up ..

Thanks
John Field



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top