【发布时间】:2016-05-20 21:09:59
【问题描述】:
我不确定这是否应该属于这个类别,但这是我的问题。
我有一个 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
我应该提一下,包、源文件和数据库都位于同一台机器上。
谢谢
【问题讨论】:
-
在您的生产中启用命名管道和 TCP/IP 连接:blackbaud.com/files/support/infinityinstaller/content/…
-
谢谢,但命名管道已启用
-
我对您问题的所有活动部分感到困惑。我们有 SSIS、SQL Server、Access 和一个存储过程和一个 UNC 路径。您能否描述一下您试图解决的问题背后的架构以及解决问题的机制
标签: sql sql-server-2005 ssis