R
Rick
Is there some generic way to parse the parameters from a sql statement?
If I start with a sql in this format:
Insert into myTable
(field1, field2, field3)
values
(@field1, @field2, @field3)
I want to pull out all the words that start with "@".
Right now I am stepping through the whole statement char by char and testing
for char = "@".
It seems like there should be some clever code to do this.
Rick
If I start with a sql in this format:
Insert into myTable
(field1, field2, field3)
values
(@field1, @field2, @field3)
I want to pull out all the words that start with "@".
Right now I am stepping through the whole statement char by char and testing
for char = "@".
It seems like there should be some clever code to do this.
Rick