On Fri, 29 Nov 2019, at 2:46 PM, MB Software Solutions, LLC wrote: > Another great tip! Dropping the indexes before adding records
Well, it's not dropping them per se, with MSSQL you can just disable them temporarily which is much easier. ALTER INDEX myindex ON mytable DISABLE ALTER INDEX myindex ON mytable ENABLE With the proviso that you do not want to do it on clustered and primary key indexes. -- Alan Bourke alanpbourke (at) fastmail (dot) fm On Fri, 29 Nov 2019, at 2:46 PM, MB Software Solutions, LLC wrote: > Another great tip! Dropping the indexes before adding records is a > proven speed tip too if you can do it and then just re-add afterwards. > > On 11/29/2019 4:48 AM, Alan Bourke wrote: > > Is this a one-off data take on, or an ongoing requirement? > > > > If you have the ability to do it, you might see an improvement by disabling > > all *non-clustered* indexes on the target SQL Server tables before doing > > your inserts, and then re-enabling them afterward. > > > > > > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

