Data Converter SSIS 数据流组件中对应列的转换数据类型应该是什么? [英] What should the converted data type of the corresponding column within the Data Converter SSIS Data Flow Component be?

查看:23
本文介绍了Data Converter SSIS 数据流组件中对应列的转换数据类型应该是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在其中一台服务器上安装了普通的 Microsoft SQL Server 2008

We have the plain Microsoft SQL Server 2008 on one of our servers

我们决定在文件系统上创建 DTSX 文件,以便我们可以使用 BIDS 2008 打开 DTSX 文件

We decided to create DTSX files on the filesystem so that we can use BIDS 2008 to open the DTSX files

一个 SSIS 控制流组件,它从 Microsoft SQL Server 2008 SQL 选择查询的大约 18-19 列中获取数据,然后转换这些值以将它们放入 Microsoft Access 表中.我使用名为 OLE DB Source 的 DataFlow 组件从 Microsoft SQL Server 2008 表中检索了许多列.检索数据后,我有一个数据转换器数据流组件来转换值.最后,转换后的值由 OLE DB 目标数据流组件放置,并放置在 Microsoft Access 表中.

One SSIS Control Flow Components that takes data from around 18-19 columns from a Microsoft SQL Server 2008 SQL select query, and then converts the values in order to place them in the Microsoft Access table. I have a number of columns that I retrieve from Microsoft SQL Server 2008 table using a DataFlow Component called OLE DB Source. After retrieving the data, I have a Data Converter data Flow Component that converts the values. Finally, the converted values are placed by an OLE DB Destination data Flow Component, and placed in a Microsoft Access table.

对于 Microsoft SQL Server 2008 中的列之一,数据类型为 varchar(5)

For one of the columns from a Microsoft SQL Server 2008 , the data type is varchar(5)

需要使用名为 OLE DB Source 的 SSIS DataFlow 组件从 Microsoft SQL Server 2008 中提取上述 varchar(5) 列中的值作为字符串 [DT_STR] 数据类型它需要使用数据转换器 SSIS 数据流组件进行转换最后,它需要在Microsoft Access 表中放置一个数据类型为Text 的列.

The value in the above varchar(5) column needs to be extracted from Microsoft SQL Server 2008 using a SSIS DataFlow Component called OLE DB Source as a string [DT_STR] Data Type It needs to converted using the Data Converter SSIS data Flow Component Finally, it needs to placed in the Microsoft Access table to a column of the data type called Text.

Data Converter SSIS 数据流组件中对应列的转换后的数据类型应该是什么?

What should the converted data type of the corresponding column within the Data Converter SSIS Data Flow Component be?

推荐答案

@vikramsinh-shinde 感谢您提供网页链接.以下实现似乎可以确保 SSIS 包正常运行,但是,我希望这是处理 SSIS 包中转换的正确方法.

@vikramsinh-shinde Thanks for the webpage links. The following implementation seemed to ensure that the SSIS package ran properly, however, I hope it's the proper way to handle conversion in the SSIS packages.

  1. -varchar(5) Microsoft SQL Server 2008 中的列值
  2. -在名为 OLE DB 源的 SSIS 数据流组件中提取为长度为 5 且代码页为 1252 的字符串 [DT_STR]
  3. -在称为数据转换器的 SSIS 数据流组件中转换为长度为 5 的 Unicode 字符串 [DT_WSTR](不可修改的 codePage 为 0)
  4. -加载到名为 Text 的数据类型的 Microsoft Access 列值

这篇关于Data Converter SSIS 数据流组件中对应列的转换数据类型应该是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆