The syntax for inline index declaration was added in SQL Server 2014, though that <s>is</s> **was** absolutely unclear in [the official `CREATE TABLE` documentation](https://msdn.microsoft.com/en-us/library/ms174979.aspx). After speaking to the documentation owners, that topic now accurately reflects that inline index syntax is only valid starting with SQL Server 2014 (and some variations in 2016):

> [![enter image description here][1]][1]

The other instances, where this syntax is working for you, must be on SQL Server 2014 or newer. 

On 2012, regardless of compatibility level, you'll need to create the index separately.


  [1]: https://i.sstatic.net/8EzcR.png