The syntax for inline index declaration was added in SQL Server 2014, though that is absolutely unclear in [the official `CREATE TABLE` documentation](https://msdn.microsoft.com/en-us/library/ms174979.aspx). The other servers where this is working must be >= 2014 (any compatibility level). On 2012, regardless of compatibility level, you'll need to create the index separately.