Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Thursday, August 31, 2017

script to run dbcc indexdefrag for all databases in a server.

SQLServerCentral » Latest topics
script to run dbcc indexdefrag for all databases in a server.
Hi all,
I'm trying to create a script to run dbcc indexdefrag not only for one database, but for all of my databases in my server.
I try the following:
[code language="sql"]
/*Perform a 'USE <dat

No comments: