株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

Powershellのオブジェクトとして各パーツを扱えるので便利な模様

モジュールインストール

Install-Module -Name SqlServer

クエリ実行

Invoke-Sqlcmd  -ServerInstance "test.database.windows.net"
-Database "test" -Username "user" -Password "password" -Query 
"select @@version

実行結果

Column1
-------
Microsoft SQL Azure (RTM) - 12.0.2000.8 ...

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)