In vb.net i am running a stored procedure in sql server 2000
the SP is something like:
@Curve int
.
.
.
@Qualifier varchar(3) = NULL
AS
select * from table1 where
curve=@Curve
.
.
.
AND Qualifier = @Qualifier
Basically the question is that when i run the query like select * from table1 where Qualifier IS NULL
it works and returns data but in SP when no @Qualifier is passed then it becomes select * from table1 where Qualifier = NULL
when it is = null it does not return data
and thoughts?
thanks
the SP is something like:
@Curve int
.
.
.
@Qualifier varchar(3) = NULL
AS
select * from table1 where
curve=@Curve
.
.
.
AND Qualifier = @Qualifier
Basically the question is that when i run the query like select * from table1 where Qualifier IS NULL
it works and returns data but in SP when no @Qualifier is passed then it becomes select * from table1 where Qualifier = NULL
when it is = null it does not return data
and thoughts?
thanks