SE の雑記

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

Author Archive

Data Amp で発表された migration service の内容を整理してみる

one comment

Data Ampde で新しいサービスとして「migration service」が発表されました。
Cloud Platform Release Announcements for April 19, 2017
では以下のように紹介されています。

Azure SQL DB preferred dev environment| Migration service + SQL DB expanded support

New migration service in Azure and expanded support in SQL Database
At Microsoft Data Amp we’re announcing limited previews for a new migration service and expanded SQL Database support for existing SQL Server databases. The new migration service will help you move existing SQL Server and Oracle databases to Azure SQL Database or SQL Server in an Azure virtual machine. Additionally, the expanded support in SQL Database will bring native VNET support and a large set of SQL server instance level features to help streamline lift and shift to Azure. Apply to participate in the limited preview today.

現状は限定されたプレビューのため、すぐに使ってみるということができませんが、発表内容をざっと整理してみようかと。
Data Amp のキーノートについては、Microsoft Data Amp 2017 | Keynotes  から見ることができます。
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 24th, 2017 at 12:30 am

SQL Server 2017 新機能 (CTP 2.0 版)

leave a comment


SQL Server 2017 の新機能をざっくりまとめたものとなります。
docs.com にも同一の内容をおいていますので、PDF で見たい場合などはこちらをご利用ください。
わかった気になれるかもしれない SQL Server 2017 新機能
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 23rd, 2017 at 2:17 pm

Microsoft Data Amp の発表内容

leave a comment

昨年の 3 月に Data Driven というイベントがありましたが、今年は Data Amp というイベントが開催されています。
SQL Server も関連しているイベントなので、ストリーミングを見ながらつらつらと。
今回のイベントのタイミングで出てきた MS のサイトの情報は以下かなと。
SQL Server v.Next が SQL Server 2017 となることがアナウンスされ、こそっと SSDT 17.0 が GA されてました。
■SQL Server 2017 のアナウンス
SQL Server 2017 Community Technology Preview 2.0 now available
Top three capabilities to get excited about in the next version of SQL Server
■データベースエンジン
Introducing Batch Mode Adaptive Joins
Introducing Interleaved Execution for Multi-Statement Table Valued Functions
Resumable Online Index Rebuild is in public preview for SQL Server 2017 CTP 2.0
Graph Data Processing with SQL Server 2017
■R Server
Introducing Microsoft R Server 9.1 release
■Machine Learning Services
Delivering AI with data: the next generation of Microsoft’s data platform
Python in SQL Server 2017: enhanced in-database machine learning
■SSAS
What’s new in SQL Server 2017 CTP 2.0 for Analysis Services
Introducing DirectQuery Support for Tabular 1400
New Get Data Capabilities in the GA Release of SSDT Tabular 17.0 (April 2017)
Introducing a DAX Editor Tool Window for SSDT Tabular
■SSDT
Announcing the General Availability (GA) Release of SSDT 17.0 (April 2017)
 
Azure 系に関しては以下で一括でアナウンスですかね。 Azure Analysis Services も GA しました。
Cloud Platform Release Announcements for April 19, 2017
Announcing Azure Analysis Services general availability
 
評価版の提供とDocker Hub のイメージも更新されているようです。
Linux 向けのリポジトリも更新されています。
https://www.microsoft.com/ja-jp/evalcenter/evaluate-sql-server-2017-ctp
https://hub.docker.com/r/microsoft/mssql-server-linux/tags/
リリースノート等も更新されています。
SQL Server vNext Release Notes
What’s New in SQL Server vNext
What’s New in SQL Server vNext (Database Engine)
What’s new in SQL Server Reporting Services (SSRS)
What’s New in Integration Services in SQL Server vNext
What’s new in SQL Server Analysis Services vNext
What’s New in Machine Learning with SQL Server
 
SQL Server の R サービスは Machine Learning サービス (In-Database) に名称が変わったようです。
データベースエンジンの新機能としては、以下のものがあるようですね。

Read the rest of this entry »

Written by Masayuki.Ozawa

4月 20th, 2017 at 12:00 am

SQL Database で VIEW SERVER STATE が必要なログインを複数作成する

leave a comment

Simple Monitor では、SQL Database の情報取得について、「sys.dm_os_performance_counters」を使用して情報を取得しているのですが、この DMV を参照するためには「VIEW SERVER STATE」の権限が必要となります。
今までは、「サーバー管理者」のログインを使用していたため、サクッと情報が取得できていたのですが、個別に作ったログインを使用して上記の DMV の情報を取得しようとした際にうまくいかず、「サーバー管理者」以外のログインで、情報の取得を使用とした際のメモを。
結論から言うと、自分で作ったログインでは、上記の DMV を参照することはできなかったのですが、DMV が参照可能なログインを複数用意することはできました。
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 19th, 2017 at 10:56 pm

Posted in SQL Database

Tagged with

Simple Monitor というツールを細々と作っています

leave a comment

ちょっと、SQL Server や、SQL Database のリソース可視化を行いたかったので、Simple Monitor というツールを細々と作っています。
https://github.com/MasayukiOzawa/SQLServer-Util/tree/master/Simple%20Monitor
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 18th, 2017 at 9:39 am

Windows 10 Creators Update にアップデートした際に FileStream が動作しなくなる現象についての情報

leave a comment

SNS でいくつか情報が上がっていますが、Windows 10 Creators Update にアップデートした環境で、SQL Server の FileStream が動作しないという現象が発生しています。
US の TechNet フォーラムにも同様の現象の情報が上がっています。
Database in recovery pending status
詳細については、FILESTREAM issues with SQL Server on Windows 10 creators update で情報が発信されており、現状の回避策としては、SQL Server のサービスアカウントが管理者権限を持つように設定変更する必要があるようです。

Workaround

Following are some of the workaround identified which will enable you to overcome the above errors on Windows 10 creators update.

  • Change the SQL Server service startup account to built-in account LocalSystem
  • Change the SQL Server service startup account to a domain user account with local admin privileges on the system
  • If you use virtual account [NT SERVICE\MSSQL$InstanceName] as service startup account, please make this account a member of the local administrators group
  • Uninstall Creators Update and fall back to the previous Windows build

The Windows team is working on the fix to prevent this breaking change on FILE_OPEN_IF api. If you have SQL Server installed on Windows 10 with databases using filestream feature, we recommend you defer applying the Windows 10 Creators update until the fix is made available.

We will update the blog post once the fix is made available by Windows team

とのことで、修正をする予定のようですが、4/15 時点では修正プログラムはまだ公開されていませんので、Creators Update の適用は注意する必要があるかと。
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 15th, 2017 at 10:48 am

SQL Server v.Next の 「140」「VSS」 の照合順序を試してみる

leave a comment

SQL Server v.Next では「140」と「_VSS」という照合順序が追加されています。
# Variation selector Sensitive の略でしょうかね。
照合順序と Unicode のサポート を見ていたところ、VSS について記載が追加されていました。

バリエーションの選択を区別する (_VSS)
SQL Server vNext から導入された日本語の照合順序 Japanese_Bushu_Kakusu_140 と Japanese_XJIS_140 で多様な表意文字のバリエーションの選択を区別します。 バリエーションのシーケンスは、基本文字と追加のバリエーションの選択で構成されます。 この _VSS オプションが選択されていない場合、照合順序はバリエーションの選択が区別されず、バリエーションの選択は比較で考慮されません。 つまり、SQL Server では、並べ替えが同じになるように、バリエーションの選択が異なる同じ基本文字に基づいて構築された文字を考慮しています。 「Unicode Ideographic Variation Database」 (Unicode 表意文字のバリエーション データベース) も参照してください。
異体字セレクターを区別する (_VSS) 照合順序は、全文検索インデックスではサポートされていません。 全文検索インデックスでは、アクセントを区別する (_AS)、かなを区別する (_KS)、文字幅を区別する (_WS) オプションのみがサポートされます。 SQL Server XML と CLR のエンジンでは、(_VSS) 異体字セレクターはサポートされていません。

 
異体字セレクターの 基本文字 + 追加のバリエーションの文字が考慮されるとのことですので少し試してみました。
異体字セレクターについては、以下を見るとよさそうです。
 https://msdn.microsoft.com/ja-jp/library/ms143726.aspx
 http://unicode.org/ivd/
 http://www.mirai-ii.co.jp/moji/ivs.html
Read the rest of this entry »

Written by Masayuki.Ozawa

4月 3rd, 2017 at 10:36 pm

Posted in SQL Server

Tagged with ,

Data Factory のコピーアクティブティと SQL Database の BLOB ストレージのファイルロードの組み合わせ

leave a comment

以前、SQL Server v.Next と SQL Database の BLOB ストレージからのローディングの新機能 という投稿を書きましたが、Azure Data Factory と組み合わせてみたいと思います。 Read the rest of this entry »

Written by Masayuki.Ozawa

4月 2nd, 2017 at 10:42 pm

OMS のパフォーマンスカウンターに SQL Server 関連のカウンターを追加するスクリプト

leave a comment

OMS の Log Analytics (ログ解析) では、Windows パフォーマンスカウンターの情報を取得することができます。
Log Analytics での Windows および Linux のパフォーマンス データ ソース Read the rest of this entry »

Written by Masayuki.Ozawa

4月 2nd, 2017 at 12:22 pm

PASS SUMMIT 2016 のセッションから見る SQL Server v.Next のグラフテーブル

leave a comment

SSMS 17.0 RC3 で SQL Server v.Next に接続をすると「グラフテーブル」というテーブルが表示されるようになります。
# SQL Database v12 に接続した場合も「Graph Table」が表示されます。
SQL Server のグラフテーブルは「ノードテーブル」「エッジテーブル」で構成されることが確認でき、構文自体も確認することができます。
image
 

CREATE TABLE dbo.sample_nodetable
(
    c1 int NOT NULL,
    c2 char(10) NULL,
    c3 datetime NULL,
    -- Unique index on $nodeid is required
    INDEX ix_graphid UNIQUE ($nodeid)
)
AS NODE
GO
CREATE TABLE dbo.sample_edgetable
(
    -- Columns are optional for Edge Tables
    --
    c1 int NOT NULL,
    c2 char(10) NULL,
    c3 datetime NULL,
    -- Unique index on $edgeid is required
    INDEX ix_graphid UNIQUE ($edgeid),
    -- indexes on $fromid and $toid support faster lookups
    INDEX ix_fromid ($fromid),
    INDEX ix_toid ($toid)
)
AS EDGE
GO

 
現状、この構文を実行するだけでは、構文エラーとなりグラフテーブルを作成することができないのですが、PASS  SUMMIT 2016 の「What’s New in Azure SQL Database」というセッションで、グラフテーブルについても解説がされていましたので、情報をまとめてみたいと思います。
Read the rest of this entry »

Written by Masayuki.Ozawa

3月 29th, 2017 at 7:25 am

Posted in SQL Server

Tagged with ,