我使用最新的AZURE
2016版本安装了一台全新的SQL Server
计算机。运行问题后ssis packages
(异常反序列化包...)我也无法创建ssis
服务目录。我收到了错误:
找不到方法:'Void.Microsoft.SqlServer.Management.IntegrationServices.EnableSSISSupportAlwaysOnSqmHelper.Initialise()'
答案 0 :(得分:0)
首先使用以下sql脚本启用clr:
sp_configure'显示高级选项',1; 走 RECONFIGURE; 走 sp_configure' clr enabled',1; 走 RECONFIGURE; GO
然后使用此PowerShell脚本创建目录:
$ ISNamespace =" Microsoft.SqlServer.Management.IntegrationServices"
写主机"连接服务器......"
$ sqlConnectionString =" Data Source = localhost; Initial Catalog = master; Integrated Security = SSPI;" $ sqlConnection = New-Object System.Data.SqlClient.SqlConnection $ sqlConnectionString
写主机"已连接......"
$ integrationServices = New-Object $ ISNamespace" .IntegrationServices" $的SqlConnection
写主机" SSIS obj创建..."
$ catalog = New-Object $ ISNamespace" .Catalog" ($ integrationServices," SSISDB"," P @ assword1") $ catalog.Create()