BACPAC missing stats

sakuraime 2,326 Reputation points
2021-02-03T10:27:48.143+00:00

I did some test , migration SQL Server to Azure sql database using BACPAC export import method will missed out the '_WA*' auto created statistics ...

how to solve it ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,955 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tom Phillips 17,736 Reputation points
    2021-02-03T14:42:25.007+00:00

    _WA_sys stats are auto-created stats. They are not scripted. If needed, they will be recreated by the engine.

    Please see:
    https://www.mssqltips.com/sqlservertip/2734/what-are-the-sql-server-wasys-statistics/


  2. CathyJi-MSFT 22,306 Reputation points Microsoft Vendor
    2021-02-04T09:46:55.99+00:00

    Hi @sakuraime ,

    Using EXEC sp_updatestats to update statistics after migrating the database to Azure DB. This include auto-created stats.


    If the response is helpful, please click "Accept Answer", thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.