SE の雑記

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

Archive for the ‘SQL Database’ tag

SQL Database の行レベルセキュリティについての情報

leave a comment

SQL Database では現状、プレビューではありますが、行単位にアクセス制御を行うための行レベルセキュリティ (RLS)を利用することができます。

海外の SQL Server Security Blog で RLS について興味深い投稿がありましたのでメモとして。

Row-Level Security: Blocking unauthorized INSERTs
Row-Level Security: Performance and common patterns

細かな内容は えろす師匠 に聞くとよいかと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 29th, 2015 at 11:39 pm

Posted in SQL Database

Tagged with

SQL Server 2014 の最新 CU 適用による v12 への bacpac インポート

leave a comment

SQL Server 2014 の最新の CU では bacpac 連携機能機能が更新されています。
CU5 以降で更新されていたかもしれませんが、今回は CU6 を使用しています。

最新の CU では DacFx の強化も含まれているようです。
SQL Server Management Studio 2014 用の累積更新プログラム 6
MicrosoftR SQL ServerR データ層アプリケーション フレームワーク (2015 年 2 月)

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 12th, 2015 at 12:41 pm

Posted in SQL Database

Tagged with

2015/4/10 時点の SQL Database v12 の TDE の対応状況について

leave a comment

SQL Database v12 がリリースされた際に、 Azure is the Ideal Cloud for Your Database Workloads with Increased SQL Server Compatibility, Security, Automation, and Power などで、TDE (透過的データ暗号化 / Transparent Data Encryption) の実装についてのアナウンスがされていました。

Today also marks the introduction of a suite of security features coming to the latest version of SQL Database; Row-Level Security, Dynamic Data Masking, and Transparent Data Encryption.

具体的な構文等のアナウンスがなかったのであまり調べていなかったのですが、2015/4/10 時点の情報を少しまとめてみたいと思います。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 10th, 2015 at 8:19 am

Posted in SQL Database

Tagged with

Elastic Scale API を PowerShell から使用してみる

leave a comment

先日、Azure SQL Database Elastic Scale プレビューを更新 /  最新の Elastic Scale クライアント ライブラリへのアップグレード で Elastic Scale API の新しいバージョンが提供されていたのは知っていたのですが、私はコード書くのが苦手で えろす師匠 と えろす師匠の放ったオオアリクイ  によって、この業界から抹殺される寸前なので、ちょっと頑張って、PowerShell から Elastic Scale API を使ってみました。

Elastic Scale は Azure SQL Database の Elastic Scale の概要 で日本語のドキュメントが公開されていますので、こちらから情報を確認するとよいかなと。

Azure SQL Database Elastic Scale Client Library 使い方簡易まとめ もとても参考になります。

PowerShell から Elastic Scale API を使用するときに参考となる情報は、Azure SQL Database Elastic Scale: Shard Elasticity が参考になります。

 

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 7th, 2015 at 10:13 pm

SQL Database の自動で取得されているバックアップとリストアについて

one comment

SQL Database のポイントインタイム リストアについて、熊なはずなのに猫としての地位を確立しつつある某氏からリプライをいただいていて、そういえばあまり調べたことがないなと思い、少し調べてみました。

詳しい情報については以下を参照していただければと。

Azure SQL Database のポイントインタイム リストア
Azure SQL Database のバックアップと復元
Azure SQL データベースの継続性

バックアップ / リストア機能に関しては SQL Server の Basic / Standard / Premium で使用できる機能となりますので、Web / Business では使用することができません。

機能を使用できるパフォーマンスレベルを使用している場合は、デフォルトでバックアップとリストアを使用することができます。今回の投稿では、バックアップとリストアが使用できるパフォーマンスレベルの投稿となります。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 4th, 2015 at 8:01 pm

Posted in SQL Database

Tagged with

SQL Database に CNAME でアクセスした場合の暗号化接続について

leave a comment

プレビューポータルからは SQL Database のサーバー名を設定できるようになったので、CNAME でアクセスしたいということは少ないかもしれませんが。

元ネタは こちら
A Custom DNS Name for my SQL Azure Database Server

Read the rest of this entry »

Written by Masayuki.Ozawa

3月 20th, 2015 at 11:52 pm

Posted in SQL Database

Tagged with

SQL Database の動的データマスキング (プレビュー) を試してみる

2 comments

我らが Azure 界の No.1 が Azure Update (2015.02.19) で書いてくださっていたので少し試してみました。

公式の情報としては、
Public preview: Dynamic Data Masking for Azure SQL Database
Get started with SQL Database Dynamic Data Masking
を参照していただければと思います。

また、動的データマスキングを使用するためには、

  • SQL Database v12
  • セキュリティが有効なアクセスを使用する必要がある

の 2 点が前提となるようです。

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 19th, 2015 at 10:59 am

Posted in SQL Database

Tagged with

SQL Database v12 のリソース調整設定を確認してみる

leave a comment

SQL Database v12 のリソース調整設定を確認できそうな、sys.dm_user_db_resource_governance  という DMV があったので内容を確認したところ、パフォーマンスレベルに応じたリソース調整の設定を確認することができそうでした。
# S2 以上でないと DMV から情報を取得することができませんでしたが。
2015/3/16 に確認したところ、S1未満でも情報が取得できるようになっていました。

DTU の正体はこの辺のリソース調整なのかもしれないですね。

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 18th, 2015 at 8:48 pm

Posted in SQL Database

Tagged with

SQL Database v12 への移行方法について考えてみる

one comment

先日、一部の地域では SQL Database v12 が GA しました。
今後のリリース予定については以下を参照していただければ。
What’s new in the Latest SQL Database Update V12 (preview)

日本でも近いうちに (First quarter 2015, estimated) GA が予定されていますので、v12 への移行方法を軽くまとめてみたいと思います。
今回は同一のサブスクリプション / 地域での移行を想定しています。

アップグレードの基本パターンについては Plan and prepare to upgrade to the Latest SQL Database Update V12 (preview) を参照するとよいかと。

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 12th, 2015 at 11:33 pm

Posted in SQL Database

Tagged with

SQL Database v12 の構成を DMV から調べてみる

leave a comment

SQL Database v12 は現状、S2 以上のデータベースであれば DMV から各種情報を取得することが可能です。
# というより、S2 未満でも取得したいものですね…。
2015/3/16 に確認したところ、S1 以下でも取得できるようになっていました。

取得できる情報から SQL Database v12 の各種構成を調べてみました。

Read the rest of this entry »

Written by Masayuki.Ozawa

2月 8th, 2015 at 11:07 pm