Integration  Services 包在部署过程中,经常会出现这样那样的问题,让人摸不着头脑,很是烦人。下面我就将我在部署过程中,遇到的一些问题整理出来,以供大家参考。 

  (一)SSIS包在SQL Server Business Intelligence Development Studio环境中运行正常,通过DTExecUI.exe 运行也正常,可是一旦部署到Sql Server Agent 中,就不能正常运行,如图所示:

Integration Services包部署常见问题汇总 

(在开发环境运行) 

 Integration Services包部署常见问题汇总

(在Sql Server Agent 中运行)

   从图上的错误信息看出,是数据库登录失败。这就奇怪了,在SQL Server Business Intelligence Development Studio中运行没有问题,而在配置Sql Server Agent Job的过程中,也没有修改过连接配置啊,为什么此时sa 就连接失败了呢?Integration Services包部署常见问题汇总Integration Services包部署常见问题汇总Integration Services包部署常见问题汇总

  (1)我们在SQL Server Business Intelligence Development Studio中,打开解决方案,打开连接管理器,如图所示:

Integration Services包部署常见问题汇总 

  单击[测试连接] ,提示“连接成功”,没有问题啊,纳闷了。

  此路不通,我们换一种方式试试,选择"Windows 身份认证",如图:

Integration Services包部署常见问题汇总 

  单击[测试连接],提示“连接成功”,点击[确定],返回到编辑界面,[生成],再[Deployment],一切正常。

  再切换Sql Server Agent 中,查看Job 的运行历史记录,错误依旧。

  想来想去,不得其解,无奈之下,只好再换一种方法,[启用包配置](配置方法请参见Integration Services 学习(6):包配置),如图:

Integration Services包部署常见问题汇总 

  然后再打开配置文件,修改数据库连接信息。

<?xml version="1.0"?>
<DTSConfiguration>
  
<DTSConfigurationHeading>
    
<DTSConfigurationFileInfo />
  
</DTSConfigurationHeading>
  
<Configuration ConfiguredType="Property" Path="\Package.Connections[ApIisLog].Properties[ConnectionString]" ValueType="String">
    
<ConfiguredValue>Data Source=goumh-hgh;Initial Catalog=ApIisLog;Provider=SQLNCLI10.1;uid=sa;pwd=123456;</ConfiguredValue>
  
</Configuration>  
</DTSConfiguration>

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-06-15
  • 2021-04-30
  • 2021-10-17
  • 2021-10-25
猜你喜欢
  • 2021-07-07
  • 2021-12-27
  • 2021-10-04
  • 2021-06-10
相关资源
相似解决方案