SE の雑記

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

Archive for the ‘SQL Server’ Category

メモリ最適化テーブルデータ型を使ってみる

leave a comment

SQL Server 2014 の In-Memory OLTP のメモリ最適化テーブルでは一時テーブルを作成来ることはできません。
image

ただし、メモリ最適化テーブルデータ型 (Memory-Optimized Table Type)  を作成することができます。

Transact-SQL によるインメモリ OLTP のサポート
CREATE TYPE (Transact-SQL)
DECLARE @local_variable (Transact-SQL)
Read the rest of this entry »

Written by Masayuki.Ozawa

11月 10th, 2013 at 3:00 pm

Posted in SQL Server

Tagged with ,

[SQL Server 2014 CTP2]自動的な SNAPSHOT 分離レベルへのエスカレーション

leave a comment

メモリ最適化テーブルへのアクセスでは、使用できるトランザクション分離レベル

  • SNAPSHOT
  • REPEATABLE READ
  • SERIALIZABLE

の 3 種類になります。

SQL Server のデフォルトのトランザクション分離レベルは READ COMMITTED になります。

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 27th, 2013 at 9:42 pm

Posted in SQL Server

Tagged with ,

MicrosoftR SQL ServerR Backup to Microsoft WindowsR AzureRTool を使ってみる

one comment

ダウンロードセンターを見ていたら MicrosoftR SQL ServerR Backup to Microsoft WindowsR AzureRTool  というツールがリリースされていました。

何のツールだろうと思って少し使ってみました。

BOL としては Windows Azure BLOB ストレージ サービスを使用した SQL Server のバックアップと復元 が対象かと。

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 27th, 2013 at 1:14 pm

Microsoft® SQL Server® Backup to Microsoft Windows® Azure®Tool を使ってみる

one comment

ダウンロードセンターを見ていたら Microsoft® SQL Server® Backup to Microsoft Windows® Azure®Tool  というツールがリリースされていました。

何のツールだろうと思って少し使ってみました。

BOL としては Windows Azure BLOB ストレージ サービスを使用した SQL Server のバックアップと復元 が対象かと。

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 27th, 2013 at 1:14 pm

ネイティブコンパイルされたオブジェクトのロードについて

leave a comment

SQL Server 2014 の BOL を見ていて気づきました。
テーブルとストアド プロシージャのネイティブ コンパイル

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 24th, 2013 at 8:51 am

Posted in SQL Server

Tagged with ,

[SQL Server 2014 CTP2]メモリ最適化テーブルに移行するための 3 つのアドバイザー

leave a comment

SQL Server 2014 の SSMS ではメモリ最適化テーブルへ移行するためのアドバイザーとして AMR (Analysis / Migration / Report) ツールが提供されています。

image

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 23rd, 2013 at 12:05 am

Posted in SQL Server

Tagged with ,

[SQL Server 2012 CTP2]In-Memory OLTP と AlwaysOn

leave a comment

SQL Server 2012 CTP1 の時にはメモリ最適化テーブルと AlwaysOn を組み合わせることができませんでした。
いちからはじめる Memory Optimized Table その 10
CTP2 になって、メモリ最適化テーブルと AlwaysOn を組み合わせることができるようになりました。
SQL Server 2014 CTP 2 Now Available

Thank you to those that have already downloaded SQL Server 2014 CTP1 and started seeing first hand the performance gains that in-memory capabilities deliver along with better high availability with AlwaysOn enhancements.

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 20th, 2013 at 8:02 pm

Posted in SQL Server

Tagged with ,

[SQL Server 2014 CTP2]In-Memory OLTP のリソースガバナー

leave a comment

In-Memory OLTP のメモリ最適化テーブルですが、データをメモリ上に確保できなくなるとエラーとなります。
メモリが不足している状態でデータの追加をしようとすると以下のようなエラーになります。
# 実際には追加 (INSERT) だけでなく、更新 (UPDATE) をした場合にもエラーとなりますが。
image

メモリが不足した際のリカバリー方法としては以下のような情報があります。
How to: Recover from OOM (Out Of Memory)

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 19th, 2013 at 7:09 pm

Posted in SQL Server

Tagged with

[SQL Server 2012 CTP2]メモリ最適化テーブルのインデックスのメモリ使用量の比較

leave a comment

SQL Server 2012 CTP2 では、範囲検索に使用できるレンジインデックスが使用できるようになりました。

細かな仕様までは調べられていないのですが、通常のハッシュインデックスと比較して、どの程度メモリ使用量に差が出るのかを見てみました。

基本的なガイドラインに関しては Guidelines for Using Indexes on Memory-Optimized Tables に。

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 18th, 2013 at 9:18 am

Posted in SQL Server

Tagged with ,

[SQL Server 2014 CTP2]ネイティブコンパイルされたストアドプロシージャの実行統計の収集

leave a comment

SQL Server 2014 CTP2 で追加された内容について、少しずつ見ていきたいと思います。

今回はIn-Memory OLTP で利用できる、ネイティブコンパイルされたストアドプロシージャーの実行統計の収集について。
Enabling Statistics Collection for Natively Compiled Stored Procedures

Read the rest of this entry »

Written by Masayuki.Ozawa

10月 17th, 2013 at 8:21 am

Posted in SQL Server

Tagged with ,