2009-07-20 56 views
0

我有在VS2008/SQL2008(目标数据库)中开发的SSISpackage,我的源数据是SQL2005。这个包在web服务的.Net框架中执行。在执行时出现错误SOURCE连接 (与provider = SQLNCLI10 in connection string)通过Webservices在SSIS包中进行Sql连接

出现错误,说明如下。

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 Server Native Client 10.0" Hresult: 0x80004005 
Description: "Login timeout expired". 
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 
Description: "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.". 
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 
Description: "Named Pipes Provider: Could not open a connection to SQL Server [2]. ". 

请让我知道如何解决此问题。

回答

1

如果您的证书不正确,通常会弹出错误消息。

确保您可以通过Management Studio通过SSIS包中使用的相同凭据连接到服务器。 SQL 10.0驱动程序完全兼容并且能够连接到SQL 2005框。

但是,大多数情况下,您正在运行SQL Server代理帐户(它是SQL Server帐户)。并且您正在连接到远程服务器。如果是这种情况,您需要在SQL Server中使用create a Credential。然后,您必须在SQL Server代理中使用create a Proxy,并允许它运行SSIS包。然后,将该代理指定为启动包的作业步骤的所有者。

+0

在连接字符串是使用数据源= IP地址(与MGT工作室连接),但是当我尝试用servername替换IP地址,它不从管理studio连接。添加到DNS名称后,它工作正常。感谢您的发现 – rmdussa 2009-07-20 04:59:35