Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Linked server to SSIS Catalog random connection issues

$
0
0

Here is my scenario:

-We have sqlserver 2012 installed for all instances

-We have a sql server that is just a ssis catalog server. [SSIS Catalog Server]

-We have a sql server that has our actual databases on it. [SQL Data Server]

[SQL Data Server] calls stored procedures via a  linked server server connection on [SSIS Catalog Server] to execute a ssis package. Once or twice a month (this process is called daily) it fails and does not provide much information. It seems like the servers stop talking to each other randomly. Inside of the SSIS catalog server I see that the execution result is unexpected termination. A couple minutes later the job runs fine. Any ideas? 

We call the catalog server using code like the following:

Declare @execution_id bigint, @success int,@args_v sql_variant,@stdErrOutPath_v sql_variant
Declare @Result int = 0
EXEC [SSISCatalogServer].[create_execution] @package_name=N'xxx.dtsx', @execution_id=@execution_id OUTPUT, @folder_name=N'XXX', @project_name=N'XXX', @use32bitruntime=False, @reference_id=Null
Select @execution_id
exec [SSISCatalogServer].set_execution_parameter_value @execution_id,  @object_type=50, @parameter_name=N'SYNCHRONIZED', @parameter_value=1
EXEC [SSISCatalogServer].set_execution_parameter_value @execution_id, @object_type=30, @parameter_name=N'args', @parameter_value=@args
if(@stdErrOutPath is not null)
	EXEC [SSISCatalogServer].set_execution_parameter_value @execution_id, @object_type=30, @parameter_name=N'logfile', @parameter_value=@stdErrOutPath
EXEC [SSIS Catalog Server].[start_execution] @execution_id
SELECT @success=[status] from [SSIS Catalog Server].executions where [execution_id] =@execution_id


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>