Click here to Skip to main content
15,909,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using the Following:

SQL
ALTER procedure [dbo].[searchEstimate1] (@p_serchStr nvarchar(30), @v_done smallint OUTPUT)
as
DECLARE @SerchValueIDTBL TABLE (SerchValueID bigint)

BEGIN
    SET @p_serchStr = UPPER('%'+@p_serchStr+'%')
    delete from @SerchValueIDTBL

    SET @v_done = 1

insert into @SerchValueIDTBL
    select EstimateID
    from EstimateMaster
   where UPPER(convert(varchar(50),EstimateDate))like @p_serchStr



SELECT *
    FROM EstimateSummary
    where EstimateID IN ( select distinct SerchValueID
                          from @SerchValueIDTBL)


    SELECT @v_done
END



in this when i Pass the date that is jun two space 2 2010 then its takes
and when May two space 22 2010 then it does not display
Posted
Updated 7-Jun-10 1:10am
v2
Comments
Jamil Hallal 7-Jun-10 9:35am    
can you clarify your question?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900