SQL服务器整理以匹配SSIS订购
示例值来自SQL Server数据集,因为它们是在 rales 条款之后出现的:
X0000000-2009
X000000-1-2010
X0000001-2010
如果我使用field colletate colletate latin1_general_bin
它们的出现略有不同,则
X000000-1-2010
X0000000-2009
X0000001-2010
我正在寻找 :但是,要在SSI中使用此数据加入转换而无需进行排序转换,但是,一种类型的转换会订购它们为:
X0000000-2009
X0000001-2010
X000000-1-2010
这是有问题的,因为我需要在我的SQL源查询中匹配SSIS订购,以使其合并以进行合并加入以正常工作。
我可以通过在顺序中使用整理,可以保证与SSIS订购相匹配?
Example values from a SQL Server data set as they appear after an ORDER BY
clause:
X0000000-2009
X000000-1-2010
X0000001-2010
If I use ORDER BY Field COLLATE Latin1_General_bin
they come out slightly differently as:
X000000-1-2010
X0000000-2009
X0000001-2010
I'm looking to use this data in a Merge Join transformation in SSIS without the need for a Sort transformation, however, a Sort transformation will order them as:
X0000000-2009
X0000001-2010
X000000-1-2010
This is problematic because I need to match the SSIS ordering in my SQL source query in order for the Merge Join to work properly.
Is there a collation I can use in my ORDER BY
that is guaranteed to match the SSIS ordering?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论