Ask a Question related to ASP Database, Design and Development.
-
Darren Heinrich #1
concat fields then search the new field
how would I concatenate several fields from a record set then search the new
field for individual keywords ?
something like:
Dim theArray
for i = 1 to recSet.RecordCount
theArray(i) = recSet("field1) & recSet("field2') etc
next
But then what statements would i use to search it ?
Darren
Darren Heinrich Guest
-
Search database fields using single text field
Kindly advise on how to develop a database search page such that there is single text field to enter serach string and the results are shown on the... -
Concat two fields in SQL
I am trying to concatenate two columns in an SQL statement but haven't been having much success: here is the portion of the SQL: ... -
Keyword search on 5 fields
Hello group, I want to use one a keyword which will then automatically search 5 fields for the keyword and display any records with the keyword... -
dropdownlist-concat two fields-can it be done
I am not sure how to, or even if you can do this. I have tried several things. I have a drop down list that is databound to a datareader. I wish... -
SQL Search Multiple Fields ??
James wrote: Yes. Well, just execute this SQL statement using the PHP extension for the SQL server you're using. By the way: how does... -
Aaron Bertrand [MVP] #2
Re: concat fields then search the new field
Why do you want to bring the data back to the ASP page and then search it
there? I think it would be more efficient to search the database at the
database...
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Darren Heinrich" <dazzjazz@ozemail.com.au> wrote in message
news:cTEUb.189$J9.3209@nnrp1.ozemail.com.au...new> how would I concatenate several fields from a record set then search the> field for individual keywords ?
>
> something like:
>
> Dim theArray
>
> for i = 1 to recSet.RecordCount
> theArray(i) = recSet("field1) & recSet("field2') etc
> next
>
> But then what statements would i use to search it ?
>
> Darren
>
>
>
>
Aaron Bertrand [MVP] Guest
-
Darren Heinrich #3
Re: concat fields then search the new field
I don't know - sorry I'm a part timer !!!
Should I be making a temp table or something ?
Darren
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:OttzmVH7DHA.3008@TK2MSFTNGP09.phx.gbl...> Why do you want to bring the data back to the ASP page and then search it
> there? I think it would be more efficient to search the database at the
> database...
>
> --
> Aaron Bertrand
> SQL Server MVP
> [url]http://www.aspfaq.com/[/url]
>
>
>
>
> "Darren Heinrich" <dazzjazz@ozemail.com.au> wrote in message
> news:cTEUb.189$J9.3209@nnrp1.ozemail.com.au...> new> > how would I concatenate several fields from a record set then search the>> > field for individual keywords ?
> >
> > something like:
> >
> > Dim theArray
> >
> > for i = 1 to recSet.RecordCount
> > theArray(i) = recSet("field1) & recSet("field2') etc
> > next
> >
> > But then what statements would i use to search it ?
> >
> > Darren
> >
> >
> >
> >
>
Darren Heinrich Guest
-
Bob Barrows #4
Re: concat fields then search the new field
Darren Heinrich wrote:
No, don't do that. Let the database do it:> how would I concatenate several fields from a record set then search
> the new field for individual keywords ?
>
> something like:
>
> Dim theArray
>
> for i = 1 to recSet.RecordCount
> theArray(i) = recSet("field1) & recSet("field2') etc
> next
>
Select ...
WHERE [field1] & [field2] LIKE "%searchword%"
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Aaron Bertrand - MVP #5
Re: concat fields then search the new field
> Should I be making a temp table or something ?
What would a temp table do for you? SEARCH THE TABLE. You seem to be going
out of your way, in all of your posts, to re-invent the wheel.
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand - MVP Guest



Reply With Quote

