473,386 Members | 2,042 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,386 software developers and data experts.

Multiple Keyword Search using SQL PROC

I need to support multiple keyword search, not boolean searchs, just simple
searches, i.e. "marhsall ma". How is this done? Do I send the entire search
string to the Proc? How do I deal with it there? I'm thinking I need to
build the WHERE clause in the code behind and send it to the proc. What do
you think?

Thanks,

David Lozzi
Nov 19 '05 #1
7 2185
David,

You can build the where in the code, as you say. I personally prefer doing
this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
I need to support multiple keyword search, not boolean searchs, just simple searches, i.e. "marhsall ma". How is this done? Do I send the entire search string to the Proc? How do I deal with it there? I'm thinking I need to
build the WHERE clause in the code behind and send it to the proc. What do
you think?

Thanks,

David Lozzi

Nov 19 '05 #2
How?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
David,

You can build the where in the code, as you say. I personally prefer doing
this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
I need to support multiple keyword search, not boolean searchs, just

simple
searches, i.e. "marhsall ma". How is this done? Do I send the entire

search
string to the Proc? How do I deal with it there? I'm thinking I need to
build the WHERE clause in the code behind and send it to the proc. What
do
you think?

Thanks,

David Lozzi


Nov 19 '05 #3
How to parse? Using the language you are writing stored procedures in.
Usually it is Transact-SQL and it has a standard set of string functions.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:uF**************@TK2MSFTNGP09.phx.gbl...
How?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
David,

You can build the where in the code, as you say. I personally prefer doing this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
I need to support multiple keyword search, not boolean searchs, just

simple
searches, i.e. "marhsall ma". How is this done? Do I send the entire

search
string to the Proc? How do I deal with it there? I'm thinking I need to
build the WHERE clause in the code behind and send it to the proc. What
do
you think?

Thanks,

David Lozzi



Nov 19 '05 #4
I tend to believe, the string maniputaion functions of .NET will be more
efficient and richer than t-sql or pl-sql
"Eliyahu Goldin" wrote:
David,

You can build the where in the code, as you say. I personally prefer doing
this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
I need to support multiple keyword search, not boolean searchs, just

simple
searches, i.e. "marhsall ma". How is this done? Do I send the entire

search
string to the Proc? How do I deal with it there? I'm thinking I need to
build the WHERE clause in the code behind and send it to the proc. What do
you think?

Thanks,

David Lozzi


Nov 19 '05 #5
Likely. But stored procedures are pre-compiled. And the database server
usually is big and fast.

Eliyahu

"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
I tend to believe, the string maniputaion functions of .NET will be more
efficient and richer than t-sql or pl-sql
"Eliyahu Goldin" wrote:
David,

You can build the where in the code, as you say. I personally prefer doing this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
I need to support multiple keyword search, not boolean searchs, just

simple
searches, i.e. "marhsall ma". How is this done? Do I send the entire

search
string to the Proc? How do I deal with it there? I'm thinking I need to build the WHERE clause in the code behind and send it to the proc. What do you think?

Thanks,

David Lozzi


Nov 19 '05 #6
Not to argue, just trying to express my understanding...

it is the same case if I build the query in code behind too.. code behind
is compiled (to IL) and big websites run on webfarm, but database servers are
usually just 1 or 2..

building the query dynamically in .NET also helps to make debugging easier

thanks
Sreejith

"Eliyahu Goldin" wrote:
Likely. But stored procedures are pre-compiled. And the database server
usually is big and fast.

Eliyahu

"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
I tend to believe, the string maniputaion functions of .NET will be more
efficient and richer than t-sql or pl-sql
"Eliyahu Goldin" wrote:
David,

You can build the where in the code, as you say. I personally prefer doing this sort of things in stored procedures, if possible. It should perform
better. Pass one string and parse it in the sp.

Eliyahu

"David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...
> I need to support multiple keyword search, not boolean searchs, just
simple
> searches, i.e. "marhsall ma". How is this done? Do I send the entire
search
> string to the Proc? How do I deal with it there? I'm thinking I need to > build the WHERE clause in the code behind and send it to the proc. What do > you think?
>
> Thanks,
>
> David Lozzi
>
>


Nov 19 '05 #7
I mean stored procedures are pre-compiled on the database server. That makes
the database call faster.

Eliyahu

"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Not to argue, just trying to express my understanding...

it is the same case if I build the query in code behind too.. code behind is compiled (to IL) and big websites run on webfarm, but database servers are usually just 1 or 2..

building the query dynamically in .NET also helps to make debugging easier
thanks
Sreejith

"Eliyahu Goldin" wrote:
Likely. But stored procedures are pre-compiled. And the database server
usually is big and fast.

Eliyahu

"Sreejith Ram" <Sr*********@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
I tend to believe, the string maniputaion functions of .NET will be more efficient and richer than t-sql or pl-sql
"Eliyahu Goldin" wrote:

> David,
>
> You can build the where in the code, as you say. I personally prefer

doing
> this sort of things in stored procedures, if possible. It should perform > better. Pass one string and parse it in the sp.
>
> Eliyahu
>
> "David Lozzi" <dlozzi@(removethis)delphi-ts.com> wrote in message
> news:eV*************@TK2MSFTNGP15.phx.gbl...
> > I need to support multiple keyword search, not boolean searchs, just > simple
> > searches, i.e. "marhsall ma". How is this done? Do I send the entire > search
> > string to the Proc? How do I deal with it there? I'm thinking I
need to
> > build the WHERE clause in the code behind and send it to the proc.

What do
> > you think?
> >
> > Thanks,
> >
> > David Lozzi
> >
> >
>
>
>


Nov 19 '05 #8

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

Similar topics

6
by: Rizyak | last post by:
******************** alt.php.sql,comp databases.ms-sqlserver microsoft.public.sqlserver.programming *********************************** Why doesn't this work: SELECT * FROM 'Events'
2
by: David Lozzi | last post by:
Howdy, I am doing a simple keyword search in my SQL database from my ASP.NET w/ VB application. Currently, I am using a PROC and within the PROC I am doing something like so: SELECT * FROM...
1
by: Roy | last post by:
I'm assuming this is amazingly simple and I'm just missing the boat. On the html side of an asp.net page I have a datagrid, a "search" button, and 8 text boxes for search criteria. A user enters...
4
by: Dave Edwards | last post by:
I understand that I can fill a datagrid with multiple queries, but I cannot figure out how to fill a dataset with the same query but run against multiple SQL servers, the query , table structure...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
5
by: JP SIngh | last post by:
Hi All This is a complicated one, not for the faint hearted :) :) :) Please help if you can how to achieve this search. We have a freetext search entry box to allow users to search the...
4
by: laurenquantrell | last post by:
I have a query below that performs horribly: @KeywordOne char(6), @KeywordTwo char(6), @KeywordThree char(6), @KeywordFour char(6), @KeywordFive char(6) SELECT
3
by: Richard S | last post by:
CODE: ASP.NET with C# DATABASE: ACCES alright, im having a problem, probably a small thing, but i cant figure out, nor find it in any other post, or on the internet realy (probably cuz i wouldnt...
5
by: mforema | last post by:
Hi Everyone, I want to search records by typing in multiple keywords. I currently have a search form. It has a combo box, text box, Search command button, and a subform. The combo box lists the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.