Extract table statistics DDL

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2009
Posts: 1
Reputation: vkubushyn is an unknown quantity at this point 
Solved Threads: 0
vkubushyn vkubushyn is offline Offline
Newbie Poster

Extract table statistics DDL

 
0
  #1
21 Days Ago
Hello everyone,

I searched extensively but was unable to find a solution to this problem. I'm attempting to generate the CREATE STATISTICS statement that was used to create an already existing statistics in an MSSQL db from its name or the table's name. I'm able to obtain the columns and the filter definition, but I cannot find anywhere that specifies the "FULLSCAN", "SAMPLE" and "STATS_STREAM" WITH options. I am querying the sys.stats and sys.stats_columns.

Please help me out with this! Thanks!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC