SE の雑記

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

Archive for the ‘SQL Database’ Category

SQL Server 2016 で Temporal Table と Stretch Database を組み合わせて使用する

leave a comment

SQL Server 2016 の Temporal Table と Stretch Database は組み合わせることが可能です。
組み合わせることで、

  • Temporal Table の履歴テーブルを Stretch Database により SQL Database に格納する

というようなことができます。

Stretch Database
Stretch Database の概要

設定までの流れを軽く見ていきたいと思います。

なお、今回は  SQL Server 2016 RC1 を使用していますが、RC1 の Stretch Databas は RC0 とは異なり、SQL Server Stretch Database が使用されるのがデフォルトの動作となっています。

Read the rest of this entry »

Written by Masayuki.Ozawa

3月 21st, 2016 at 4:11 pm

SQLPackage と SQL Database Migration Wizard についての雑記

leave a comment

タイトルの通りですが、SQL Database にツールベースで移行するための方法として、

ここ数日、夜なべして Azure VM 上にインストールした SQL Server で試していた時のの雑記を少し。

[SQL Database] SQL Server ? Windows Azure SQL Database (WASD) 間のデータ同期方法について
SQL Server データベースのクラウド内の SQL Database への移行
も参考になります。

Read the rest of this entry »

Written by Masayuki.Ozawa

3月 5th, 2016 at 10:41 pm

Posted in SQL Database

Tagged with

SQL Database で Temporal テーブルが使えるようになったので改めて試してみる

leave a comment

Preview: Temporal tables in Azure SQL Database でアナウンスされていますが、SQL Database v12 で、プレビューではありますが、Temporal テーブルが使用できるようになりました。

以前、SQL Server 2016 CTP 2.0 の Temporal Table を使ってみる で試してみたのですが、ざっくりでしたのでこの機会に改めて、試してみたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 28th, 2016 at 11:53 am

SQL Database の脅威の検出 (プレビュー) を試してみる

leave a comment

機能が使えるようになってから結構経ってしまいましたが、SQL Database では脅威の検出の機能がプレビューで使用することができます。

Azure SQL Database Threat Detection のパブリック プレビューを開始
SQL Database 脅威の検出の概要
Azure SQL Database Threat Detection now in Public Preview
The ongoing scourge that is SQL injection and Azure’s new SQL Database Threat Detection

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 2nd, 2016 at 10:03 pm

Posted in SQL Database

Tagged with

SQL Database の機能 (2016/1 版)

leave a comment

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 1st, 2016 at 10:41 pm

Posted in SQL Database

Tagged with

SQL Server の「コネクション」と「セッション」について

leave a comment

今年は基本的なことをきちんと見直していこうかと。

Read the rest of this entry »

Written by Masayuki.Ozawa

1月 2nd, 2016 at 6:03 pm

SQL Database の Standard の geo レプリケーションについて

leave a comment

ぶちぞーさんの SQL Database の geo レプリケーション で紹介されていますが、geo レプリケーションをきちんと見たことがなかったため、触ってみたいと思います。

直近の情報については、以下が MS のドキュメントとなっています。
General availability: Azure SQL Database geo-replication enhancements
Spotlight on new capabilities of Azure SQL Database geo-replication
Transact-SQL を使用して Azure SQL Database の geo レプリケーションを構成する
Geo レプリケーションを使用してビジネス継続性を実現するクラウド アプリケーションの設計
ビジネス継続性の概要
Azure SQL Database を障害から回復する
アプリケーションのローリング アップグレード中の Azure SQL Database の中断を最小限にする
Geo-Replication Dynamic Management Views and Functions (Azure SQL Database)
 

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 31st, 2015 at 3:41 pm

Posted in SQL Database

Tagged with

SQL Data Warehouse のディストリビューション/パーティション単位のデータ件数の確認

leave a comment

はじめに書いてしまうと、DBCC PDW_SHOWSPACEUSED (SQL Data Warehouse) / DBCC PDW_SHOWPARTITIONSTATS (SQL Data Warehouse) で見るのが素直な方法です。

今回はサンプルの「FactInternetSales」を例にして情報を取得してみたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 23rd, 2015 at 11:01 pm

Posted in SQL Database

Tagged with

SQL Data Warehouse のテーブル構成について

leave a comment

SQL DW 向けの CREATE TABLE のドキュメント (CREATE TABLE (Azure SQL Data Warehouse)) に書かれていますが、きちんと触っていなかったので軽くまとめてみたいと思います。

 

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 20th, 2015 at 9:04 pm

ConnectRetryCount/ConnectRetryIntervalを試してみる

leave a comment

我らがおーみさんが、.NET Framework 4.6.1 is now available! の投稿を共有されていて知ったのですが、System.Data.SqlClientConnectRetryCount / ConnectRetryInterval というプロパティが追加されていたので、どのような動きになるかを少し試してみました。


 
マルチサブネットフェールオーバーの設定の動作がデフォルトになっているっぽいのも興味深いですが。
Read the rest of this entry »

Written by Masayuki.Ozawa

12月 11th, 2015 at 12:42 am