Hey all I am looking for a clean way of extracting sections of my SQL query string.
What I mean is this:
Say I have a query like:
SELECT
poc, event, network, vendor
FROM
bLine
WHERE
network = 'something'
AND
event = 'simple'
OR
event != 'hard'
ORDER BY
poc ASC
I'm looking for splitting each up in its own section (using Dictionary as a way of storing the 2 values each):
Key |Value
-------------------------------------
SELECT |poc, event, network, vendor
FROM |bLine
WHERE |network = 'something'
AND |event = 'simple'
OR |event != 'hard'
ORDER BY |poc
?? |ASC
Anyone happen to have something like this already? I've tried THIS example on SO since it seemed to be what I am looking to do but the code does not seem to work:
with errors saying:
Error CS0117 'TokenInfo' does not contain a definition for 'Start'
Error CS0117 'TokenInfo' does not contain a definition for 'End'
Error CS0117 'TokenInfo' does not contain a definition for 'IsPairMatch'
ETC ETC....
UPDATE
Seems that this SO example HERE does what I need it to do and has no errors! :)