Question : How to use DELETE  command in  SQL SERVER 2005

Hi,

I would like to do the following:
DELETE FROM PS_NCSR6200
WHERE STRM IN ('1092')

I get the following error:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

This was not an issue in the previous version of sql server.

I have tried to do what is in the help files but nothing is working.  

Any assistance would be greatly appreciated,

Lucy

Answer : How to use DELETE  command in  SQL SERVER 2005

Perhaps you are doing:

DELETE FROM PS_NCSR6200
WHERE STRM =('1092')

and '1092' is populated by building a dynamic Query string and in some cases it build a query like this.

DELETE FROM PS_NCSR6200 WHERE STRM =('1092', '1024')
^^ THIS will NOT work.  But I can assure you that what you posted is valid SQL.

Random Solutions  
 
programming4us programming4us