Sort-of parse SQL
- From: "Joe" <J_no_spam@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Apr 2005 12:35:44 -0400
I get SQL statements that include columns which aren't real columns and need
to be removed. I'm looking for a way to parse the sql to find these columns
and get the condition that may be associated with it. I know I can use
NOEXEC or PARSEONLY in SqlServer but it will only tell me if there is an
error.
For example:
select col1, col2, col3 from my table where ThisIsNotARealColumn > 11 and
....
ThisIsNotARealColumn is really the name of an expression column which is
defined elsewhere that I want to apply to the DataTable after the results
have been returned.
.
- Prev by Date: DataTable.DefaultView.Find doesn't
- Next by Date: Build version
- Previous by thread: DataTable.DefaultView.Find doesn't
- Next by thread: Build version
- Index(es):
Relevant Pages
|