Do you know where can I get the BNF (Backus Naur Form) notation for the latest version of T-SQL from. This is the microsoft version and I can't find anything for it. I found SQL2 The revised ISO standard here also called SQL92 but it seems to lack some features of microsoft's T-SQL
Have you checked out this btw?
They have enginered the notation from the ground up....
I developed TSql grammar for ANTLR 4 in EBNF form. Check it in official grammars repository. It based on msdn description.
Currently implemented syntax:
- Control of Flow (MSDN).
- Cursors (MSDN).
Data manipulation language (DML):
- Expressions (MSDN).
- Predicates.
- Transactions (MSDN).
And another syntax. Check grammar and test files for more detail.
I know this is an old question, but I just found this grammar file hosted on bitbucket that can be used with GOLD Parsing System.
Since you're looking for TSQL's BNF (I was too), and it doesn't really exist, this grammar is the next best thing IMO.
SQL Server 2005 is based on SQL-92 with some SQL-99 features and Microsoft's T-SQL extensions. Best I have found currently.
Let me know if you find a more up to date one.....
© 2022 - 2024 — McMap. All rights reserved.