小编Aks*_*hay的帖子

如何在Xpath中使用多个条件?

Xpath新手.试图在SSIS中使用XML任务来加载一些值.使用下面提到的Microsoft的XML库存.

如何在书店/书籍中加载名字价值的新颖和奖励='普利策'? //book[@style='novel' and ./author/award/text()='Pulitzer']是我在想的.它给出了整个元素.我应该在哪里修改才能获得名字值?

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="myfile.xsl" ?>
<bookstore specialty="novel">
  <book style="autobiography">
    <author>
      <first-name>Joe</first-name>
      <last-name>Bob</last-name>
      <award>Trenton Literary Review Honorable Mention</award>
    </author>
    <price>12</price>
  </book>
  <book style="textbook">
    <author>
      <first-name>Mary</first-name>
      <last-name>Bob</last-name>
      <publication>Selected Short Stories of
        <first-name>Mary</first-name>
        <last-name>Bob</last-name>
      </publication>
    </author>
    <editor>
      <first-name>Britney</first-name>
      <last-name>Bob</last-name>
    </editor>
    <price>55</price>
  </book>
  <magazine style="glossy" frequency="monthly">
    <price>2.50</price>
    <subscription price="24" per="year"/>
  </magazine>
  <book style="novel" id="myfave">
    <author>
      <first-name>Toni</first-name>
      <last-name>Bob</last-name>
      <degree from="Trenton U">B.A.</degree>
      <degree from="Harvard">Ph.D.</degree>
      <award>P</award>
      <publication>Still in Trenton</publication>
      <publication>Trenton Forever</publication>
    </author>
    <price intl="Canada" exchange="0.7">6.50</price>
    <excerpt>
      <p>It was a dark …
Run Code Online (Sandbox Code Playgroud)

xpath

6
推荐指数
2
解决办法
2万
查看次数

将字符串转换为日期时间(使用SSIS)

我想将值"5/27/2013 16:42:37.490000"(从平面文件(DT_STR)读取)插入SQL Server表的列(日期时间).如果我尝试在派生列中使用(DT_DBDATE)或DT_DBTIMESTAMP进行强制转换,则会出错.

[Derived Column [130]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "Derived Column" (130)" failed because error code 0xC0049064 occurred, and the error row disposition on "output column "Derived Column 1" (155)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
Run Code Online (Sandbox Code Playgroud)

我该怎么办呢?

谢谢

ssis

6
推荐指数
1
解决办法
4万
查看次数

有没有办法在执行 Azure 逻辑应用程序的后续步骤之前“等待”“Azure 数据工厂”执行任务完成

尝试通过逻辑应用程序使用 ADF 管道加载一些 Excel 数据。但是,当通过逻辑应用触发时,任务会触发,然后立即移至下一步。寻找一种解决方案,其中下一步等待“执行数据工厂管道”完全执行后再继续。

为了清晰起见添加图像。

-谢谢

在此输入图像描述

azure azure-logic-apps azure-data-factory

3
推荐指数
1
解决办法
2558
查看次数

在 Azure Functions 中使用 Pandas

尝试创建一个基本的Python函数并在Azure函数应用程序中使用它(基于消耗)。通过 VS Code 使用 HTTP 模板,并能够在 Azure 上使用和部署它。然而,当我尝试在逻辑中使用“Pandas”时,我收到了无法纠正的错误。我是Python的菜鸟。您能建议如何纠正吗?

使用的工具:VS Code、Azure Functions Tools 本地安装的 Python 版本:3.8.5 Azure Function App Python 版本:3.8

在此输入图像描述

在此输入图像描述

python azure azure-functions

3
推荐指数
1
解决办法
6279
查看次数

防止平面文件目标中的重复标头 - SSIS

我需要一些帮助.

我从oledb源导入.csv文件中的一些数据.我不希望标题在目标中出现两次.如果我取消选中"第一个数据行中的列名"属性,则在第一次执行时也不会填充标题.

截至目前的输出.

Col1,Col2
A,B
Col1,Col2
C,D
Run Code Online (Sandbox Code Playgroud)

如何以这样的方式运行包:如果文件为空,则插入标头.然后,如果再次执行,则不包括标题,只包括数据.

有一个类似的线程,但无法应用解决方案如何使用表达式来获取目标本身的行数.很久以前,所以我创造了一个新的.

非常感谢您的帮助.

-Akshay

ssis

2
推荐指数
1
解决办法
4502
查看次数