Open smrtreddyk opened 6 years ago
@smrtreddyk Can you provide the page link?
@Powerhelmsman
Link: Scriptdom API
property: FirstTokenIndex
Microsoft.SqlServer.TransactSql.ScriptDom DLL version: 14.0.3811.1
@dend Do you know who is right contact for .Net API on SQL part?
@Powerhelmsman I would start with @sudeepku - this seems like an issue that will need the SQL team looped in.
@dend @sudeepku Any updates so far?
FirstTokenIndex for exists statement is pointing to "opening bracket" instead of "exist" itself, this is causing issue with splitting a query using FirstTokenIndex and LastTokenIndex from ScriptTokenStream
example: Query: select from tbl1 where exists (select from tbl2 where tbl1.col1=tbl2.col2) expected output using FirstTokenIndex and LastTokenIndex: exists (select from tbl2 where tbl1.col1=tbl2.col2) current output: (select from tbl2 where tbl1.col1=tbl2.col2)