首页 文章

BIML中的连接字符串

提问于
浏览
0

我是BIML的新手,正在尝试使用biml(和Visual Studio 2017)使用用户名和密码连接到SQL Server(2017) . 每次我尝试连接时,Hoverer都会脱机,并且无法正常工作 . 即使我之后设置为在线也没有 .

我尝试使用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 Native Client 11.0" Hresult:0x80040E4D描述:"Login failed for user 'biml_user'." .

您还需要其他信息吗?

/托马斯

1 回答

  • 0

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

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

相关问题