 |
|
 |
|
Next: i need to do a restaurant menu
|
| Author |
Message |
External

Since: Jan 22, 2008 Posts: 22
|
(Msg. 1) Posted: Fri Jan 15, 2010 9:35 am
Post subject: Full text - search a table using another table? Archived from groups: microsoft>public>sqlserver>fulltext (more info?)
|
|
|
Apologies if this is a really basic thing - I read a couple books'
chapters on full text and didn't see it.
I have table A which has the event log for the server
Table B is a blacklist - phrases to ignore. "The server has been on X
days", that type of thing.
I'd like to either search table A for phrases in table B (and then
delete them), or search A where not exists phrases from table B, and
insert that into a new table.
Is this doable? If so, how? Many thanks. >> Stay informed about: Full text - search a table using another table? |
|
| Back to top |
|
 |  |
External

Since: Jan 22, 2008 Posts: 22
|
(Msg. 2) Posted: Fri Jan 15, 2010 11:19 am
Post subject: Re: Full text - search a table using another table? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jan 15, 12:48 pm, "Hilary Cotter" wrote:
> I am not sure what you want to do here.
>
> Is this what you want - search on a prhase, if the phrase is found in table
> b, its blacklisted so don't search on table a.
>
> If it is not found in table b then search on table a?
Apologies for not being clear.
I want to pull all records in table A that aren't in table B. But
it's not an exact match so I can't just do a NOT EXISTS. I figured
that going the Full Text route would allow me to do a search.
Table A:
The ABC service entered the paused state.
The ABC service entered the running state.
Hi Mom
The WinHTTP Web Proxy Auto-Discovery Service service was successfully
sent a start control.
The WinHTTP Web Proxy Auto-Discovery Service service entered the
running state.
SQL Trace ID 2 was started by login "NT AUTHORITY\SYSTEM".
SQL Trace stopped. Trace ID = '2'. Login Name = 'NT AUTHORITY
\SYSTEM'.
The ABC service encountered an error.
Table B:
The ABC service entered the
Web Proxy Auto-Discovery Service
SQL Trace
Results desired:
Hi Mom
The ABC service encountered an error.
Practically, what I'm trying to do is query all the event logs in our
environment, and add filters to a table as we find things we don't
need to see in subsequent runs. I don't want to do an exact match
since there are events with unique strings ("The server has been
running X days", for instance), and I'd rather everything be handled
via this blacklist table rather than manually coding exclusions.
One alternate idea was to build a varchar(max) with a series of OR
statements all chunked together, but that's going to get cumbersome
and slow very fast. Another idea is to build an index-of-strings,
chopping every 3 words and trying to exclude by 3-word phrases (though
again, for some I'd have to manually code exclusions)
Finally, this is on 2005, though I've read from you (October 28,
social.msdn.microsoft.com) that in SQL 2008 you can't force FTI to do
an exact match, it will always do a fuzzy search, which might be a
concern when we upgrade. >> Stay informed about: Full text - search a table using another table? |
|
| Back to top |
|
 |  |
External

Since: Aug 28, 2004 Posts: 458
|
(Msg. 3) Posted: Fri Jan 15, 2010 1:48 pm
Post subject: Re: Full text - search a table using another table? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I am not sure what you want to do here.
Is this what you want - search on a prhase, if the phrase is found in table
b, its blacklisted so don't search on table a.
If it is not found in table b then search on table a?
Is that it, or am I missing something?
"M Bourgon" wrote in message
> Apologies if this is a really basic thing - I read a couple books'
> chapters on full text and didn't see it.
>
> I have table A which has the event log for the server
> Table B is a blacklist - phrases to ignore. "The server has been on X
> days", that type of thing.
>
> I'd like to either search table A for phrases in table B (and then
> delete them), or search A where not exists phrases from table B, and
> insert that into a new table.
>
> Is this doable? If so, how? Many thanks. >> Stay informed about: Full text - search a table using another table? |
|
| Back to top |
|
 |  |
External

Since: Jan 22, 2008 Posts: 22
|
(Msg. 4) Posted: Wed Jan 20, 2010 11:48 am
Post subject: Re: Full text - search a table using another table? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> One alternate idea was to build a varchar(max) with a series of OR
> statements all chunked together, but that's going to get cumbersome
> and slow very fast. Another idea is to build an index-of-strings,
> chopping every 3 words and trying to exclude by 3-word phrases (though
> again, for some I'd have to manually code exclusions)
Came up with another idea, though again not very elegant.
Walk through your table, crafting a delete statement for each row in
your blacklist. Lather, rinse, repeat. >> Stay informed about: Full text - search a table using another table? |
|
| Back to top |
|
 |  |
| Related Topics: | FULL TEXT SEARCH PROBLEM - I have a table which has a record T17.1.516.32 I try SELECT Urun_Ad as guUrun_Ad FROM TBL_URUNLER WHERE ( (CONTAINS(Urun_Ad, '"*t17.1.516.32*"' ) )) it returns T17.1.516.32 i try SELECT Urun_Ad as guUrun_Ad FROM TBL_URUNLER WHERE (..
Benchmark for Full Text Search - Hi, We are currently using a 3rd party Search Engine to search our application content in SQL server. Could someone please point me to Benchmark data for the FTS service? I am interested in switching to FTS even if the Performance numbers are..
Full text Pattern Search - Hi, Would below mentioned thing is possible in sqlserver 2005 full text. User Table - Table Id Description - Column name 1 'Mission Impossible' - a row I want to ge this row if the search criteria is 'pos'. it is simillar to ' %pos%' in like....
full text search problem!!.....help - hello my full text queries have suddenly stop functioning,when I press execute tab, its keep on saying "Executing query" for hours.Can any one tell me how to resolve this problem. I am using SQL server 2005.In the enterprise manager, I can see ...
Full text search can not return result - Hi all, In my case, I build a full text search query. like "select * from _tt_fields where contains(string,'"development group"')", when I click F5 then execute the sql, it returned the records, but when I click execute the query mor... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|