それでは、SMOを使用してデータベースの作成を行ってみることにしよう。まず、SQL Server Management Studioから「データベース」を右クリックして「PowerShellの起動」をクリックする。すると「Databases」フォルダからPowerShellが起動するので、以下のコマンドを実行 ...
SQL Server 2008では、最近のマイクロソフトのサーバー製品と同じように、Windows PowerShellが正式にサポートされている。さらにWindows Server 2008 R2のリリースとともにPowerShellは2.0へとバージョンアップし、大幅に強化されたという噂だ。これを使うと、管理作業を ...
SQL Server 製品版では、定期的なバックアップをメンテナンスプランで構成することが多いと思います。 BACKUP DATABASE コマンドの出力先に共有フォルダを指定することも可能ではありますが、SQL Server 実行ユーザーに権限が必要ですし、ローカルにバックアップ ...
A couple of months ago, I wrote an article on how to use PowerShell to back up a database within SQL Server Express Edition. Even though the technique that I described in that post works, the script ...
ログインして、InfoQのすべての体験をアンロックしましょう!お気に入りの著者やトピックの最新情報を入手し、コンテンツと交流し、限定リソースをダウンロードできます。 “AI活用”をキーワードに「AIを使い倒し/使いこなす」企業の最前線をお届けし ...
Vibe coded with minor human intervention using Windsurf AI and Claude 3.7 Sonnet. To set up a scheduled task to run the script daily: Open Task Scheduler. Create a new task. Set the trigger to run ...
When I (along with many other people) had a lot of trouble trying to install SQL Server Management Studio in an attempt to switch from the SQL Server 2008 R2 evaluation to the free Express version, I ...
Sometimes you become the accidental DBA, or you are the DBA by choice. Either way, you can choose to spend time working in SQL Server Management Studio (SSMS) to look at things such as backups or the ...