SE の雑記

SQL Server の情報をメインに Microsoft 製品の勉強内容を日々投稿

Archive for the ‘SQL Server’ Category

行のバージョン管理をページ情報から確認してみる

leave a comment

DBCC PAGE でいろいろな情報を見ていく当ブログですが、今回は行のバージョン管理 (RLV : Row Level Versioning) についてみていきたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 24th, 2011 at 10:50 pm

Posted in SQL Server

Tagged with

large value types out of row と Textpointer と BLOB Inline Data

one comment

SQL Server 2005 以降では BLOB を格納する際のデータ型は text / ntext / image ではなく、varchar(max) / nvarchar(max) / varbinary(max) が推奨となっています。

型の変更だけでなく、[large value types out of row] というテーブルオプションも追加されています。

今回はこのテーブルオプションについて見ていきたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 19th, 2011 at 8:28 pm

Posted in SQL Server

Tagged with

統計情報の statblob について

leave a comment

SQL Server ではクエリ実行時にオプティマイザーがクエリプランを作成する際に [統計情報] を使用してデータの分布状況を判断します。

今回はその統計情報の格納先についてみていきたいと思います。

SQL Server 2005 の情報になりますが、以下の技術情報に詳細が記載されています。
Microsoft SQL Server 2005 のクエリ オプティマイザが使用する統計情報

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 17th, 2011 at 10:59 pm

Posted in SQL Server

Tagged with

DBCC PAGE でストアドプロシージャを見てみる

leave a comment

今日は趣向を変えて DBCC PAGE でストアドプロシージャを見てみたいと思います。
# あまり趣向変わってないのではという突っ込みは全力でスルーします。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 14th, 2011 at 11:36 pm

Posted in SQL Server

Tagged with

SQL Server のゴーストクリーンアップタスクの基本動作 その 4

leave a comment

久しぶりにゴーストクリーンアップタスク (GhostCleanupTask) の続きを。
今回はゴーストクリーンアップタスクが動いているのを確認する方法などをまとめてみたいと思います。

何を書こうと思っていたか、だいぶ忘れてきてしまいました…。
勢いにのってガシガシ書かないと駄目ですね。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 13th, 2011 at 11:21 am

Posted in SQL Server

Tagged with

SQL Server のゴーストクリーンアップタスクの基本動作 その 3

leave a comment

ゴーストクリーンアップタスクの続きです。
# 微妙にゴーストレコードについておっているような気がしてきましたが、そこはスルーで。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 9th, 2011 at 10:49 pm

Posted in SQL Server

Tagged with

SQL Server のゴーストクリーンアップタスクの基本動作 その 2

leave a comment

SQL Server のゴーストクリーンアップタスクの基本動作を見てみる その 1 の続きになります。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 7th, 2011 at 8:22 pm

Posted in SQL Server

Tagged with

SQL Server のゴーストクリーンアップタスクの基本動作を見てみる その 1

leave a comment

先日は DELETE / TRUNCATE について投稿をしてみました。

SQL Server の DELETE の基本動作を見てみる
SQL Server の TRUNCATE TABLE の基本動作を見てみる

本日は DELETE した際のゴーストレコード (非実体レコード) を削除するゴーストクリーンアップタスク (GhostCleanupTask) について少し見ていきたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 6th, 2011 at 11:08 pm

Posted in SQL Server

Tagged with

SQL Server の TRUNCATE TABLE の基本動作を見てみる

one comment

行きの通勤電車では DELETE の基本動作を見てみましたので帰りの電車では TRUNCATE の基本動作を見てみたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 5th, 2011 at 9:28 pm

Posted in SQL Server

Tagged with

SQL Server の DELETE の基本動作を見てみる

one comment

レコードを削除するために DELETE という DML (データ操作言語) があります。

今回の投稿はこの DELETE の基本的な動作を見ていきたいと思います。

英語になりますが以下の情報でこの辺りについては細かく解説されています。
Inside the Storage Engine: Ghost cleanup in depth

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 5th, 2011 at 8:18 am

Posted in SQL Server

Tagged with