Is Stored Procedure and 'in' broken in MSDE 2000/SQL 2000 SP4?
- From: "Tuner Fich" <Tuner Fich@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 08:36:05 -0700
This is not the command that im running but demonstrates the problem just
fine, basically 'in' using statored procedures seems to be performing as 'in'
or 'is' where as sending a query direct (identical) only performs 'in' as
expected
Example
Use msdb
Select * From Sysalerts Where database_name in (Select
convert(sysname(128),null))
returns nothing
but put the select command in a stored proceedure and it will return all the
rows with database_name that is null
Am i not seeing/setting something?
Simon
.
- Follow-Ups:
- Re: Is Stored Procedure and 'in' broken in MSDE 2000/SQL 2000 SP4?
- From: Hugo Kornelis
- Re: Is Stored Procedure and 'in' broken in MSDE 2000/SQL 2000 SP4?
- Prev by Date: Re: Query ... Distinct rows
- Next by Date: SQL and Grouping
- Previous by thread: Records Duplicating after a Join
- Next by thread: Re: Is Stored Procedure and 'in' broken in MSDE 2000/SQL 2000 SP4?
- Index(es):
Relevant Pages
|
|