SQL 2008 R2 中的 Unicode 压缩是否会导致 GUID 损坏?

发布于 2024-09-26 21:12:05 字数 506 浏览 0 评论 0原文

最近,我们的生产 SQL 2008 R2 数据库遇到了一些问题,必须将大多数数据库故障转移到日志传送的热备件。今天早上,我发现一些非常奇怪的 GUID 值分散在我们的数据库集中。作为背景,我们有一个主客户端数据库,它保存有关已安装客户端的各种信息,包括在其他表和其他数据库中引用的主 client_guid。我发现某些支持数据库中的 GUID 已被汉字和西里尔字符损坏。例如:在我们的主客户端数据表中,特定记录的 GUID 为“4d86854e-d699-4bce-a98b-c34fcc909453”,但在 Analytics 数据库中,相同的 GUID 显示为“4d86854e-d699-4bce瞧RĹ” Ɏ-c34fcc909453'。

今天我绞尽脑汁想弄清楚这是怎么发生的。我偶然发现了一些有关 Unicode 压缩的信息,并且想知道 SQL Server 是否有可能在数据库恢复期间破坏这些 GUID。

我们的数据库系统中的排序规则设置为 SQL_Latin1_General_CP1_CI_AS。

我想知道是否有人对这个问题有任何见解。

We recently had some trouble with our production SQL 2008 R2 databases and had to failover to log-shipped warm spares for most of our databases. This morning I found some very odd GUID values scattered throughout our set of databases. For background, we have a main clients database, that holds various information about installed clients, including the master client_guid that is referenced in other tables and other databases. I am seeing that the GUIDs in some of the support dbs have become corrupted with Kanji and Cyrillic characters. For example: In our main client data table, a particular record had a GUID of '4d86854e-d699-4bce-a98b-c34fcc909453', but in the Analytics database that same GUID is showing up as '4d86854e-d699-4bce瞧RĹ(Ɏ-c34fcc909453'.

I have been wracking my brain today trying to figure out how this might have happened. I stumbled upon some information about Unicode compression, and I was wondering if it might be possible for SQL Server to mangle these GUIDs during a database restore.

Collation throughout our db system is set to SQL_Latin1_General_CP1_CI_AS.

I'm wondering if anyone has any insight into this problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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