473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL style "Like" function.

Hi,

I'm looking to achieve the same functionality as the "like" function in
SQL (Server) in a program in C#.

Is there anything out of the box ready to use ?

Can this be achieved with regex ? If so, how ? Samples welcom.

Thanks,

Craig

Nov 16 '05 #1
2 2623
Hi Craig,

Check out Regular Expressions. This is the way to go.

Telmo Sampaio
MCT

<cr************@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi,

I'm looking to achieve the same functionality as the "like" function in
SQL (Server) in a program in C#.

Is there anything out of the box ready to use ?

Can this be achieved with regex ? If so, how ? Samples welcom.

Thanks,

Craig

Nov 16 '05 #2
cr************@hotmail.com wrote in
news:11*********************@z14g2000cwz.googlegro ups.com:
Hi,

I'm looking to achieve the same functionality as the "like"
function in SQL (Server) in a program in C#.

Is there anything out of the box ready to use ?

Can this be achieved with regex ? If so, how ? Samples welcom.


Craig,

I posted this reply to you back in September:

http://groups-
beta.google.com/group/microsoft.public.dotnet.languages.csharp/browse
_frm/thread/e5ba04e02993594a/fa73bdd6fecadbd1?q=sql+like+regex+timmon
s&_done=%2Fgroups%3Fas_q%3Dsql+like+regex+timmons% 26num%3D100%26scori
ng%3Dd%26hl%3Den%26ie%3DUTF-
8%26as_epq%3D%26as_oq%3D%26as_eq%3D%26as_ugroup%3D %26as_usubject%3D%2
6as_uauthors%3D%26lr%3D%26as_drrb%3Dq%26as_qdr%3D% 26as_mind%3D1%26as_
minm%3D1%26as_miny%3D1981%26as_maxd%3D24%26as_maxm %3D2%26as_maxy%3D20
05%26safe%3Doff%26&_doneTitle=Back+to+Search&&d#fa 73bdd6fecadbd1

or

http://tinyurl.com/4oz9c

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: NK | last post by:
Hi all, Does anyone know of how I can disable case sensitivity for the LIKE function in SQL? Currently the SQL statement looks like: $query = "SELECT * FROM itrader_games WHERE...
4
by: Radioactive Man | last post by:
anyone know of a function like "raw_input", which collects a string from the user entry, but one where I can set a time limit, as follows: time_limit = 10 # seconds user_answer =...
1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
3
by: Hodad | last post by:
I would like to adapt, as much as possible, the appearance and color red of the font in this button: <P><CENTER><BUTTON VALUE="SUBMIT"><A...
15
by: Marc Le Roy | last post by:
Hello, ADA Ravenscar is a restricted subset of the ADA language that has been defined for real-time software development in safety critical applications. Completed with additional restrictions...
9
by: Martin | last post by:
For use in IE only: I need to make some calculations (in a client-side script) based on the X,Y coordinates of the mouse pointer when the user clicks on an image. I want the coordinates to be...
1
by: Linda | last post by:
Hi, Is there a way to do a "text" (rather than "binary") compareison with the "like" operator, without changing the global "Option Compare" setting? I don't want to risk breaking many, many...
5
by: brino | last post by:
hi all ! i want to use the "like" function in a query but i want the user to enter the search variable. i have tried "like" but this doesnt return any results for some reason. any ideas ??? ...
13
by: dpbsmith.janissary.2006 | last post by:
I know C++ mostly from "learning by doing." My main reference is Stoustrup's book. I was puzzled by something in a colleague's code that looked like this: abc=BOOL(def) I asked him what that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.