Removed MS SQL table optimization as it causes problems on MS SQL Server 2008, closes #724