SE の雑記

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

Archive for the ‘SQL Server’ tag

シンプルなクエリで見る結合演算子の操作の違い

leave a comment

クエリ チューニングの高度な概念 に記載されていますが、結合演算子の違いについて、シンプルなクエリを使って、軽くまとめてみたいと思います。
Read the rest of this entry »

Written by Masayuki.Ozawa

1月 7th, 2017 at 10:45 am

Posted in SQL Server

Tagged with

SQL Server v.Next CTP 1.1 がリリースされました

leave a comment

SQL Server next version Community Technology Preview 1.1 now available でアナウンスされましたが、v.Next CTP 1.1 がリリースされたようです。

DL はこちらから SQL Server vNext Community Technology Preview

SSAS 関係のリリースが多いようで、BI のチームからもアナウンスされています。

Introducing a Modern Get Data Experience for SQL Server vNext on Windows CTP 1.1 for Analysis Services
What’s new for SQL Server vNext on Windows CTP 1.1 for Analysis Services

CTP 1.1 向けにドキュメントも更新されたようです。

What’s New in SQL Server vNext
SQL Server on Linux Documentation

Written by Masayuki.Ozawa

12月 17th, 2016 at 3:12 pm

Posted in SQL Server

Tagged with ,

クエリストアを使用したデータベースチューニングアドバイザーの実行

leave a comment

SSMS 16.3 では、以下のような機能強化が行われています。

SQL Server Management Studio – Changelog (SSMS)

SQL Server クエリ ストアからのワークロードの自動読み取りをサポートするためのデータベース エンジン チューニング アドバイザー (DTA) を機能強化。

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 14th, 2016 at 11:32 pm

Posted in SQL Server

Tagged with ,

パスワードを持つ SQL ユーザーを使用した場合の別のデータベースへのクエリ実行について

leave a comment

包含データベースを使用した場合、パスワードを持つ SQL ユーザーを作成することができます。
このユーザーの場合は、ログインを持たず、データベース内に作成されたユーザーでログインが可能となります。

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 11th, 2016 at 9:27 pm

Posted in SQL Server

Tagged with

Mac の sql-cli と VS Code の SQL Server Extension がどうやって接続しているか気になったので軽く調べてみました

leave a comment

Mac にインストールした sql-cli と VS Code の SQL Server Extension がどうやって SQL Server に接続しているかが気になったので軽く調べていました。

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 10th, 2016 at 3:40 pm

Posted in SQL Server

Tagged with ,

Mac の SQL Server on Linux を Python の pymssql で操作してごにょごにょしたけどよくわからなかったの巻

leave a comment

SQL Server on Linux の勉強がてら、Mac の Python で pymssql をインストールして、ごにょごにょしていたのですが、varchar のような非 Unicode 文字列の操作がよくわからんかったの巻きです。

Pythonで色々なデータベースを操作する を参考にさせていただいています。

環境としては、デフォルトでインストールされていた、Python 2.7.10 を使用しています。

SQL Server + Python ? What’s new
Build an app using SQL Server
も見ておくとよさそうですね。

Read the rest of this entry »

Written by Masayuki.Ozawa

12月 10th, 2016 at 1:50 pm

Posted in SQL Server

Tagged with ,

Docker で SQL Server vNext を実行してみる

leave a comment

今まで、SQL Server の Express Edition であれば、Windows Container で実行することができていました。
SQL Server 2016 Express Edition in Windows containers

SQL Server vNext になると、Linux / Windows / Mac の Docker でも動作するようになりました。
Run the SQL Server Docker image on Linux, Mac, or Windows

Ubuntu と Windows のコンテナーとして実行してみたいと思います。
# Mac はハード持っていないので…。

Read the rest of this entry »

Written by Masayuki.Ozawa

11月 20th, 2016 at 11:01 am

Posted in SQL Server

Tagged with ,

Ubuntu の SQL Server on Linux の基本環境を確認してみる

leave a comment

Ubuntu で SQL Server on Linux を動作させた場合の基本環境についてつらつらと
現状、SQL Server on Linux で使用できる機能については Release notes for SQL Server on Linux から確認をすることができます。
オフラインでインストーする場合のパッケージもリリースノートから入手できるものを使用する感じでしょうかね。
実際には使用できない機能が記載されているのですが、現状の SQL Server on Linux は Developer Editoin が使用されているため、記載されていないものについては、各種機能は利用できるかと思います。
詳細な情報については Microsoft ?? Linux? Microsoft ?? running its Windows’ SQL Server software on Linux がまとめられているものでしょうか。
Read the rest of this entry »

Written by Masayuki.Ozawa

11月 18th, 2016 at 10:09 pm

Posted in SQL Server

Tagged with ,

11/17 の SQL Server の発表について

one comment

Connect のタイミングで SQL Server の大きな発表がいくつも行われました!!

関連しそうな情報をざっくりと。

Connect(); 2016 の Data Platform 関連の情報については Intelligent Apps & Data から確認することができそうです。

Read the rest of this entry »

Written by Masayuki.Ozawa

11月 17th, 2016 at 1:34 am

Posted in SQL Server

Tagged with

SQL Server 2016 におけるトレースフラグ 4199

leave a comment

オプティマイザの修正プログラムを適用するためのトレースフラグとして 4199 があります。
SQL Server 2016 におけるこのトレースフラグについての整理を。

Read the rest of this entry »

Written by Masayuki.Ozawa

11月 14th, 2016 at 12:04 am

Posted in SQL Server

Tagged with