SSIS映射 [英] SSIS Mapping

查看:117
本文介绍了SSIS映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从数据库中选择一个表,使用select from from table生成一个平面文件。  OLEDB来源。当我在    flat
文件目标转换中查看映射时,我注意到查询中的列列表与select查询的顺序不同。


如何解决这个问题?我希望输出的顺序与选择列表中的顺序相同



我使用的是SQL 2016和VS2015 


< hr>

Neil

解决方案

你可以。这有点棘手。


假设你从表中选择*,列的列表是A,B,C,D。 SSIS会存储订单,因此如果您从表格中选择D,B,C,A,列表将是A,B,C,D。 


但是你可以做这个: 


从表中选择D并单击列。


从表中选择D,B并单击列。


从表格中选择D,B,C并点击列。


..........


此方法将根据您的意愿恢复SSIS中的订单。 



如果此帖子对您有帮助,请标记为答案


I am selecting a table from the db to generate a flat file using select ... from table.  OLEDB Source. I am noticing that the columns list in the query is not coming in the same order as select query, when I view the mapping in   flat file destination transformation.

How to fix this? I want the output in same order as in select list

I am using SQL 2016 and VS2015 


Neil

解决方案

You can. It is a little bit tricky.

Let's say that you do select * from table and the list of columns is A,B,C,D. SSIS would store the order hence if you write Select D,B,C,A from table the list of column would be A,B,C,D. 

However you can do this: 

Select D from table and click on columns.

Select D,B from table and click on columns.

Select D,B,C from table and click on columns.

..........

This method it will restore the order in SSIS as you wish. 

Please mark as answer if this post helped you


这篇关于SSIS映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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