Advice on parsing flat test files for certain strings
From: Neil Owens (neil_o_at__NOSPAM_ntlworld.com)
Date: 07/12/04
- Next message: Peter X: "Re: Problem writing query using sub-select..."
- Previous message: Jochen Daum: "Syntax problem with select from (if (exists (select...."
- Next in thread: Aaron [SQL Server MVP]: "Re: Advice on parsing flat test files for certain strings"
- Reply: Aaron [SQL Server MVP]: "Re: Advice on parsing flat test files for certain strings"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Jul 2004 23:08:48 GMT
I manage about 100 servers and each server produces a flat text file
containing certain useful lines of text amongst may lines of dross from a
bespoke application. I can import this flat text file into a table(table1).
I could also produce another table containing text strings and an ID field
to save duplicate data in Table1.
My question is that I need to parse each entry from each server to see if a
line of text contains a number of words/strings and then act on this. I've
used triggers with much success on other types of data (e.g. Windows Event
Logs) and would like to use an input trigger here. But I don't have a clear
idea on the best way to do this and would like some hints on how to do this
with a string match .
Is it best to store all possible search strings in another table( a 'rule'
table?) and try a join (but what if I needed just a word from a whole
string - sort of a VBScript 'Instr(....)?) or is there some other masterful
way of doing this?
Any hints appreciated
TIA
Neil
- Next message: Peter X: "Re: Problem writing query using sub-select..."
- Previous message: Jochen Daum: "Syntax problem with select from (if (exists (select...."
- Next in thread: Aaron [SQL Server MVP]: "Re: Advice on parsing flat test files for certain strings"
- Reply: Aaron [SQL Server MVP]: "Re: Advice on parsing flat test files for certain strings"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|