SQL服务器整理以匹配SSIS订购

发布于 2025-01-21 11:01:40 字数 501 浏览 4 评论 0原文

示例值来自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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文