<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iad_otomamay</author_name>
  <author_url>https://blog.hatena.ne.jp/iad_otomamay/</author_url>
  <blog_title>レベルエンター山本大のブログ</blog_title>
  <blog_url>https://daiyamamoto.hatenablog.com/</blog_url>
  <categories>
    <anon>チューニング</anon>
  </categories>
  <description>昨日のエントリ(Index再構築)の続きとして、インデックスをガバッとリビルドしたいと思ったときに、 良い方法がなかったので、 「リビルドするためのクエリ」を作るためのクエリを考えた。 select 'ALTER INDEX ALL ON ' + object_name(dm.object_id) + ' REBUILD;' FROM sys.dm_db_index_physical_stats(DB_ID(), NULL,NULL, NULL, NULL) AS dm where avg_fragmentation_in_percent &gt; 30 ALTER INDEX のALLキーワードを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20080205%2Fp1&quot; title=&quot;SQLServer2005で、インデックスを全般的にリビルドするクエリを作るクエリ - レベルエンター山本大のブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-02-05 00:00:01</published>
  <title>SQLServer2005で、インデックスを全般的にリビルドするクエリを作るクエリ</title>
  <type>rich</type>
  <url>https://daiyamamoto.hatenablog.com/entry/20080205/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
