Try this - (don't do it on any data you want !!)
create a temp table - then perform the following update query.
update tableA set columna=1 where columnb in (select columndoesntexist from #temptable)
Using SQL 2K - stored proc this query (which should return an error) actually updates ALL rows in tableA !!
ie. the sub query is selecting a column that doesn't exist.
Thankfully i did this on a dev server - phew....
PS also performs same nastiness through query analyzer
create a temp table - then perform the following update query.
update tableA set columna=1 where columnb in (select columndoesntexist from #temptable)
Using SQL 2K - stored proc this query (which should return an error) actually updates ALL rows in tableA !!
ie. the sub query is selecting a column that doesn't exist.
Thankfully i did this on a dev server - phew....
PS also performs same nastiness through query analyzer