• Rem-487422 (7/20/2009)


    Hi,

    Is there a way to generate a script or extract all existing statistics in a databases? I would like to replicate the statistics on a different server.

    Thanks

    Rem,

    I guess I understood your question. You want to create a statistics only database right?

    That means, you don't want to worry about the underlying data but just the statistics so that you

    could simulate a similar database environment.

    Well, if you are looking for this, this is possible and some people refer to it as database cloning.

    For more details, you could refer this link below, which is very useful.

    http://support.microsoft.com/default.aspx?scid=kb;EN-US;914288

    With this, we could clone a database without having to worry about the data. We would be able to simulate the same conditions as in the original database. The prerequisite is you need to have atleast SQL Server 2005 SP2 and above.

    M&M