Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL statement

Author  Topic 

engcanada
Starting Member

39 Posts

Posted - 2009-03-02 : 16:58:59
Can anyone show me a better way of witing the following both as dynamic and stored Proc:
The LIKE clause is not at all times picking up its matches.

select idproz,posternamebfrom myproz.registerproz, myproz.poster
where idproz=@idproz and
(x19 like '%'+ c19 +'%' or x20 like '%'+ c20 +'%' or Tall like '%'+ cTall +'%')

shaggy
Posting Yak Master

248 Posts

Posted - 2009-03-03 : 01:01:49
post the exact query what ur using
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-03 : 09:08:33
the posted query looks fine. why do you think like is not working as expected? can you explain the discrepancy with some data sample?
Go to Top of Page
   

- Advertisement -