SE の雑記

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

Archive for the ‘SQL Server’ Category

SQL Server 2016/SQL Database v12 で使用できるセッション単位の待ち事象を確認する DMV

leave a comment

調べ物をしていて気づいたのですが、SQL Server 2016 / SQL Database v12 では、セッション単位の待ち事象を確認することができる、sys.dm_exec_session_wait_stats という DMV が追加されているようです。

Read the rest of this entry »

Written by Masayuki.Ozawa

8月 13th, 2015 at 12:03 am

SQL Server の各種情報を取得するための参考情報を公開しました

leave a comment

SQL Server の各種情報を取得するための 3 種類の情報を公開させていただきました。

Read the rest of this entry »

Written by Masayuki.Ozawa

8月 10th, 2015 at 9:51 pm

Posted in SQL Server

Tagged with

2015/8/3 時点の SQL Database v12 のパーティション単位の TRUNCATE の問題点

leave a comment

SQL Server 2016、SQL Database v12 では TRUNCATE TABLE で WITH (PARTITIONS) が使用できるので、パーティション単位での TRUNCATE TABLE が実行できるようになっています。

これにより、スイッチせずに特定のパーティションを瞬時に削除できるのですが、2015/8/3 時点の SQL Database v12 で使用する場合、少し注意する点がありましたので、まとめてみたいと思います。
追記 : 現状の SQL Database では動作に問題はありません。
Read the rest of this entry »

Written by Masayuki.Ozawa

8月 3rd, 2015 at 8:41 pm

Posted in SQL Server

Tagged with

SQL Server でなんちゃってハッシュパーティショニング

leave a comment

SQL Server のパーティショニングですが、レンジパーティショニング (範囲分割) のみが実装されており、リストパーティショニングやハッシュパーティショニングは実装されていません。

ということでレンジパーティショニングでなんちゃってハッシュパーティショニングを実装するためのサンプルを。
パーティショキーでの検索がいまいちな使い勝手になるので、実際に利用する機会があるかは微妙ですが…。

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 27th, 2015 at 8:45 pm

Posted in SQL Server

Tagged with

互換性レベル 80 の SQL Server 2005 のデータベースに対してアップグレードアドバイザーを実行

leave a comment

先日、Windows Server 2003 のサポートが終了しましたが、SQL Server 2005 のサポートについても 2016 年 4 月 12 日に終了します。

これに伴い、最新の SQL Server への移行を検討する機会も出てくるかと思いますが、アップグレードをする際には、SQL Server アップグレードアドバイザーを使用することで、移行時の問題個所を確認することができます。

今回の投稿では、互換性レベル 80 を使用している SQL Server 2005 に対して、アップグレードアドバイザーを実行するというシナリオについてまとめてみたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 27th, 2015 at 11:49 am

Posted in SQL Server

Tagged with ,

SQL Server 2016 CTP 2.2 の列ストアインデックス + メモリ最適化テーブルを使ってみる

leave a comment

SQL Server 2016 では列ストアインデックス (カラムストアインデックス : Columnstore Index) とメモリ最適化テーブル (In-Memory OLTP : Hekaton) を組み合わせて使用できるようになります。

シナリオとしては Columnstore Indexes for Operational Analytics となり、実用的なデータ分析をリアルタイムに実施するための仕組みになるかと思います。

SQL Server 2016 CTP Technical Deep Dive / Operational Analytics in SQL Server も参考になりますので、こちらも合わせて確認をするとよいかと。

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 26th, 2015 at 3:52 pm

Posted in SQL Server

Tagged with ,

SQL Server 現状診断サービスのご紹介

one comment

弊社で提供させていただいている、SQL Server 現状診断サービスのご紹介となります。
Read the rest of this entry »

Written by Masayuki.Ozawa

7月 26th, 2015 at 10:25 am

Posted in SQL Server

Tagged with

SQL Server 最新情報

leave a comment

■ドキュメント
– SQL Server 2016 –
SQL Server 2016
What’s New in SQL Server 2016
What’s New in Database Engine
SQL Server 2016 Release Notes?
SQL Server 2016 Service Pack 1release information
Features Supported by the Editions of SQL Server 2016

■モジュール
SQL Server Evaluations
Download SQL Server Management Studio
Download Latest SQL Server Data Tools
microsoft/mssql-server-windows
microsoft/mssql-server-linux
■動画
SQL Server Data Driven: Technical Deep Dive
Microsoft SQL Server 2016
Intelligent Apps & Data

Written by Masayuki.Ozawa

7月 26th, 2015 at 10:22 am

Posted in SQL Server

Tagged with ,

Microsoft SQL Server Integration Services Feature Pack for Azure

leave a comment

Microsoft SQL Server  Integration Services Feature Pack for Azure として、

Microsoft SQL Server 2012 Integration Services Feature Pack for Azure
Microsoft SQL Server 2014 Integration Services Feature Pack for Azure

が提供されていますのでメモとして。

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 15th, 2015 at 10:43 pm

SQL Server 2016 CTP 2.1 の SSMS の認証方式の追加についてのメモ

leave a comment

先日、SQL Server 2016 CTP 2.1 の SSMS を使っていて気づいたのですが、CTP 2.1 の SSMS では選択できる認証方式が追加されているようです。

image

Read the rest of this entry »

Written by Masayuki.Ozawa

7月 14th, 2015 at 11:54 pm

Posted in SQL Server

Tagged with ,