Re: Search for a String within ntext Field
- From: "Mark McGinty" <mmcginty@xxxxxxxxxxxxxxx>
- Date: Tue, 5 Dec 2006 09:03:57 -0800
"EdwardH" <EdwardH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F153098A-DF6F-4FD5-8102-3EE4AC0B95A1@xxxxxxxxxxxxxxxx
Any pointers gratefully received
On the server (assuming SQL Server, which seems likely as ntext is a SQL
Server type name) use LIKE with a wildcard pattern:
SELECT * FROM mytable WHERE myntextcol LIKE N'%' + @SearchString + N'%'
On the client, use InStr (in VB), or CString.Find (C++/MFC), or the
Unicode-capable variant of strstr (C Runtime), etc.
-Mark
.
- Prev by Date: Re: Using ADO, Call a Stored Procedure with Variables
- Next by Date: Back with How to read binary data from a Dbase varchar(80) ?
- Previous by thread: Using ADO, Call a Stored Procedure with Variables
- Next by thread: Back with How to read binary data from a Dbase varchar(80) ?
- Index(es):
Relevant Pages
|
|