<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toriaezu</author_name>
  <author_url>https://blog.hatena.ne.jp/toriaezu/</author_url>
  <blog_title>とりあえずなんですけどね</blog_title>
  <blog_url>https://toriaezu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ヒマだからtips書いた。全テーブルのデータ件数を一度に取得するクエリ。SQLServer2005以降はOKですよ。 select a.name, b.row_count from sys.tables a left join sys.dm_db_partition_stats b on a.object_id = b.object_id order by a.object_id これまではsp_MStablespaceを駆使したクエリが大半でしたが、先週MicrosoftのセミナーであるTechEd2010に参加していい刺激をもらったので、動的管理ビューを使ってみました。 動的管理ビューを知…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoriaezu.hatenadiary.org%2Fentry%2F20100901%2F1283303249&quot; title=&quot;全テーブルのデータ件数を一度に取得するクエリを書いてみた - とりあえずなんですけどね&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>2010-09-01 10:07:29</published>
  <title>全テーブルのデータ件数を一度に取得するクエリを書いてみた</title>
  <type>rich</type>
  <url>https://toriaezu.hatenadiary.org/entry/20100901/1283303249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
