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 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
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
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
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
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
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 > >
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 > > > > > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Rizyak |
last post by:
********************
alt.php.sql,comp
databases.ms-sqlserver
microsoft.public.sqlserver.programming
***********************************
Why doesn't this work:
SELECT *
FROM 'Events'
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
| |