BIML中的连接字符串

时间:2018-08-21 13:29:15

标签: ssis biml

我是BIML的新手,正在尝试使用用户名和密码使用biml(和visual studio 2017)连接到SQL Server(2017)。每次尝试连接时,悬停器都会脱机,并且无法正常工作。即使之后我设置为在线也不会。

我尝试使用SSID进行连接,并且一切正常,只有在提供“用户ID”和“密码”时才会出现问题

<Biml xmlns="http://schemas.varigence.com/biml.xsd">

<Connections>
        <Connection  Name="test_name" ConnectionString="Data Source=abc15\un1;Initial Catalog=extract;Persist Security Info=True;Provider=SQLNCLI11.1;User ID=biml_user;Password=biml_password;" CreateInProject="true"/>
</Connections>*

  <Packages>
    <Package Name="test_name" ConstraintMode="Parallel" ProtectionLevel="DontSaveSensitive">
      <Tasks>
        <ExecuteSQL Name="Test Select" ConnectionName="test_name">
          <DirectInput>Select 1 As One</DirectInput>
        </ExecuteSQL>
      </Tasks>
    </Package>
  </Packages>
</Biml>

错误消息:错误:SSIS错误代码DTS_E_OLEDBERROR。发生OLE DB错误。错误代码:0x80040E4D。 OLE DB记录可用。来源:“ Microsoft SQL Server本机客户端11.0”结果:0x80040E4D说明:“用户'biml_user'的登录失败。”。

您还需要其他信息吗?

/托马斯

1 个答案:

答案 0 :(得分:0)

您在Biml中设置了ProtectionLevel="DontSaveSensitive",它将输出一个SSIS程序包,该程序包不会-顾名思义地保存用户名和密码等敏感信息。

您需要更改保护级别或将凭据保留在SSIS参数中。

相关问题