Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search a column for 2 values
Message
From
07/01/2016 09:17:42
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01629636
Message ID:
01629638
Views:
40
>Hi,
>
>I am trying to search through a table of SQL Server where a column has two values of char(254). It does not matter where, the field is a type Text. How would you do it in WHERE?
>
>TIA
>
>UPDATE. Wanted to add the the Text column is not full-text indexed. So Contains() does not work.

how about

where LEN(columnname) - LEN(REPLACE(columnname,char(254),'')) = 2
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform