手動で作成するのではなく、T-SQLスクリプトを使用してSQL Management StudioでSSIS用のSSISDBを作成できるのでしょうか?SSISプロジェクト用のSSISDBを作成するSQLスクリプト
おかげ
手動で作成するのではなく、T-SQLスクリプトを使用してSQL Management StudioでSSIS用のSSISDBを作成できるのでしょうか?SSISプロジェクト用のSSISDBを作成するSQLスクリプト
おかげ
あなたはPowerShellの経由でプログラム的にそれを行うことができ、それはT-SQLから行うが、this MSDN pageに基づいて行うことができると思いませんか:
# Load the IntegrationServices Assembly
[Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.Management.IntegrationServices")
# Store the IntegrationServices Assembly namespace to avoid typing it every time
$ISNamespace = "Microsoft.SqlServer.Management.IntegrationServices"
Write-Host "Connecting to server ..."
# Create a connection to the server
$sqlConnectionString = "Data Source=localhost;Initial Catalog=master;Integrated Security=SSPI;"
$sqlConnection = New-Object System.Data.SqlClient.SqlConnection $sqlConnectionString
# Create the Integration Services object
$integrationServices = New-Object $ISNamespace".IntegrationServices" $sqlConnection
# Provision a new SSIS Catalog
$catalog = New-Object $ISNamespace".Catalog" ($integrationServices, "SSISDB", "[email protected]")
$catalog.Create()
あなたが行を変更したいと思いますこれは$ sqlConnectionStringをターゲット環境と一致するように定義し、最後から二番目の行の[email protected]
を自分のパスワードに置き換えます。
SSISDBとは何を意味し、何を試しましたか? –
SSISDBカタログは、SSISパッケージ、パラメータ、プロジェクト、アクセス許可などを格納するデータベースです。基本的に、SSISプロジェクトを管理する中心的な場所です。 SQL Server Management Studioで作成されます。 SQL Management StudioのIntegration Servicesカタログを右クリックして手動で作成する方法を知っていますが、T-SQLスクリプトを使用する方法を探しているので、このデータベースをtest/uat/preprod環境で自動的に作成する必要はありません。異なる環境のそれぞれで手動で実行できます。 – SHB