移动到生产时,包不会运行

时间:2016-02-10 13:24:41

标签: sql sql-server-2005 ssis

我不确定这应该属于这个类别,但这是我的问题。

我有一个SSIS包,我正试图转移到我们的生产服务器。它在QA服务器上工作正常,但现在我已将其移至生产中,我收到错误:

Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Login timeout expired".
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that 
under the default settings SQL Server does not allow remote connections.".
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Named Pipes Provider: Could not open a connection to SQL Server [2]. ".
End Error
Error: 2016-02-08 14:01:51.24
 Code: 0xC020801C
 Source: Data Flow Task OLE DB Destination [39652]
 Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "MYSERVER.MYDB" failed with error code 0xC0202009. There may be error messages posted before this with more 
information on why the AcquireConnection method call failed.

当我尝试从通过Access启动时创建的存储过程运行包以运行包时,会发生这些错误。

ALTER PROCEDURE [dbo].[sp_import] 
AS
BEGIN
    SET NOCOUNT ON;
DECLARE @SQLQuery AS VARCHAR(2000)
DECLARE @ServerName VARCHAR(200) 
SET @ServerName = 'MYSERVER' 
SET @SQLQuery = 'DTExec /F ^"\\MYSERVER\Import\Package.dtsx^" '
EXEC master..xp_cmdshell @SQLQuery
END

我应该提一下,包,源文件和数据库都位于同一台机器上。

由于

1 个答案:

答案 0 :(得分:-1)

您的问题与自动访问有关,在连接管理器上通过sql server更改从Windows到服务器的连接,并提供具有自动访问权限的帐户。

相关问题