Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Check all DB's for auto create statistics turned o

Author  Topic 

JaybeeSQL
Posting Yak Master

112 Posts

Posted - 2014-02-12 : 11:19:19
Anyone know the system table this is in?

Cheers,

JB

robvolk
Most Valuable Yak

15732 Posts

Posted - 2014-02-12 : 15:07:51
select * from sys.databases where is_auto_create_stats_on=1
Go to Top of Page

JaybeeSQL
Posting Yak Master

112 Posts

Posted - 2014-02-13 : 06:35:57
No, this is for SQL 2000 ...
Go to Top of Page

JaybeeSQL
Posting Yak Master

112 Posts

Posted - 2014-02-13 : 07:30:04
Never mind, I've figured it out...

sp_MSForeachDB 'print ''?'' exec sp_dboption ?'
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2014-02-13 : 07:31:28
SELECT name FROM sysdatabases WHERE DATABASEPROPERTY(name,'IsAutoCreateStatistics')=1
Go to Top of Page
   

- Advertisement -