Comments on: HOW TO: Recreate SQL Server Statistics In a Different Environment https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Mon, 22 Aug 2022 14:26:38 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Performance issues after moving a database to SQL Server 2014 https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-90363 Mon, 22 Aug 2022 14:26:38 +0000 http://thomaslarock.com/?p=16923#comment-90363 […] as Rest2, and the earlier as Rest1) 6. Extract all statistics from Rest2 using the techniques at https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/ for all tables involved in the problematic queries (or all tables if that’s simpler) 7. Apply […]

]]>
By: Thomas LaRock https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-28245 Thu, 28 Jun 2018 14:55:48 +0000 http://thomaslarock.com/?p=16923#comment-28245 In reply to Austin Germiller.

I believe so, yes. Give it a try and let me know if it doesn’t work.

]]>
By: Austin Germiller https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-28201 Wed, 27 Jun 2018 19:38:11 +0000 http://thomaslarock.com/?p=16923#comment-28201 Could you use this same technique for a duplicated table in the same database? That is, if I created a duplicate table (different name obviously) with the same definition and data as my live table in my dev environment, could I apply the stats from my live table to my copied table even though they exist in the same DB?

If so it looks like I’d just have to update the table name in the generated script to be my copied table, but first I’m just looking for advice on whether its OK to do.

]]>
By: SQL SERVER - DevOps for the DBA - Notes from the Field #091 - Journey to SQL Authority with Pinal Dave https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-15882 Mon, 06 Mar 2017 07:14:00 +0000 http://thomaslarock.com/?p=16923#comment-15882 […] Strive to provide operational support to development efforts. The best development environment is one that is identical to operations; that’s not always feasible or practical to implement.   DBA’s need to be part of the development process by finding ways to make the dev environment as similar to production as possible; virtualization technology can be a great tool for that, whether it’s virtualizing servers (e.g., VMware, Hyper-V, VirtualBox) or databases (e.g., Delphix).  Short of that, you can just make sure that your developers have a good representation of the current production statistics. […]

]]>
By: ThomasLaRock https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-15499 Mon, 28 Nov 2016 19:40:00 +0000 http://thomaslarock.com/?p=16923#comment-15499 In reply to JBrune.

Yes, I suppose you could do that, but that seems to be “mad scientist” level of tinkering. I’d be interested in hearing your results.

]]>
By: JBrune https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-15456 Wed, 23 Nov 2016 16:26:00 +0000 http://thomaslarock.com/?p=16923#comment-15456 So this also means if I backup production to another environment, I could update stats in that environment and then copy the stats to prod quickly without worrying about a huge IO storm, right?

]]>
By: Do You Even Blog Bro? (Stats, Execution Plans, Indexes, and crazyness) | | Colin Stasiuk https://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/#comment-14362 Thu, 02 Jun 2016 16:26:34 +0000 http://thomaslarock.com/?p=16923#comment-14362 […] http://thomaslarock.com/2015/07/how-to-recreate-sql-server-statistics-in-a-different-environment/ […]

]]>