Deprecated feature identification #359
Unanswered
brettshearer
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am embarking on a rather large code cleanup of about 2000 C# projects, with both inline SQL as well as stored procs/functions etc.
I am aware I can use performance counters or extended events to analyse statements at runtime.
I intend to remove all deprecated feature calls and replace with supported mechanisms.
My thoughts are that this analysis could be done by this library, and instead of having to wait for syntax errors on removed syntax, have deprecated feature warnings whilst the feature is still 'live' but not advised to be used.
A trivial example:
select * from MyTable with (FORCESEEK INDEX(MyIndex))
This is deprecated
select * from MyTable with (FORCESEEK, INDEX(MyIndex))
This is supported (note the comma)
Do you currently have any identification mechanism that would show deprecated feature usage?
If not, would it make sense for the library to have this, or should it be implemented outside of this library?
I did try the two examples - both parsed to the same number of TSqlFragment objects and I couldn't see any difference on the table hint fragments.
Beta Was this translation helpful? Give feedback.
All reactions