それでは、SMOを使用してデータベースの作成を行ってみることにしよう。まず、SQL Server Management Studioから「データベース」を右クリックして「PowerShellの起動」をクリックする。すると「Databases」フォルダからPowerShellが起動するので、以下のコマンドを実行 ...
他にも、PowerShellで可能な処理をいくつか見ていこう。まずはSMOを使用した少し複雑な例として、インデックスを作成してみよう。まず、SQL Server Management Studioで「インデックス」を右クリックし、「PowerShellの起動」をクリックする。 SMOを使用して ...
Let's follow up the last column with a step-by-step breakdown shows how the PowerShell script automates SQL Server backups, manages retention, logs activity and verifies data integrity. In my first ...
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 ...
Good God, that looks so much easier than screwing around with the system.Data classes. Most of my databases are built with SQL Express. I have the free copy of SQL Server Management Studio (SSMS) 2008 ...