title: SQL Server online indexing in non-enterprise editions
body: <p>I'm trying to implement the logic depending on SQL Server edition:</p>
  
  <pre><code>IF SERVERPROPERTY('EngineEdition') = 3 /* Enterprise */ OR SERVERPROPERTY('EngineEdition') = 5 /* SQL Azure */
  BEGIN
    CREATE NONCLUSTERED INDEX IX_MobileDeviceId_with_include ON dbo.FineActivations (MobileDeviceId) INCLUDE (ActivationTime, FineId) WITH (ONLINE = ON);
  END
  </code></pre>
  
  <p>On SQL Server Express the condition in <code>IF</code> is not satisfied. But it still produces the following error:</p>
  
  <blockquote>
    <p>Online index operations can only be performed in Enterprise edition of SQL Server.</p>
  </blockquote>
  
  <p>Is it possible to overcome it?</p>