将数据从 Filemaker Pro 6 导出到 Sql Server 的最佳方式是什么?

发布于 2024-10-05 11:23:17 字数 619 浏览 1 评论 0原文

我正在将多个 FMP6 数据库迁移/整合到由 SQL Server 2008 支持的单个 C# 应用程序。我遇到的问题是如何将数据导出到真实数据库 (SQL Server),以便我可以处理数据质量和规范化。这很重要,有许多重复字段需要标准化为子表。

我认为有一些不同的选项,其中大多数涉及通过 ODBC 连接到 FMP 并使用中间体来复制数据(自定义代码或 MS Acess 链接表),或者导出为平面文件格式(没有标题或 xml 的 CSV),并且使用 Excel 生成插入语句或编写一些自定义代码来加载文件。

我倾向于编写一些自定义代码来进行迁移(例如 这篇文章 确实如此,但在 C# 中而不是 perl)通过 ODBC,但我担心编写仅使用一次的迁移器的开销(一旦新系统启动,现有数据库将被存档) ...

一些令人高兴的小警告:在此版本的 FMP 中,每个文件只有一个表,并且单个列可能具有多值属性,由十六进制 1D 分隔,当然,这是 ASCII 组分隔符!

有人有类似迁移的经验吗?

I'm migrating/consolidating multiple FMP6 databases to a single C# application backed by SQL Server 2008. the problem I have is how to export the data to a real database (SQL Server) so I can work on data quality and normalisation. Which will be significant, there are a number of repeating fields that need to be normalised into child tables.

As I see it there are a few different options, most of which involve either connecting to to FMP over ODBC and using an intermediate to copy the data across (either custom code or MS Acess linked tables), or, exporting to flat file format (CSV with no header or xml) and either use excel to generate insert statements or write some custom code to load the file.

I'm leaning towards writing some custom code to do the migration (like this article does, but in C# instead of perl) over ODBC, but I'm concerned about the overhead of writing a migrator that will only be used once (as soon as the new system is up the existing DB's will be archived)...

a few little joyful caveats: in this version of FMP there's only one table per file, and a single column may have multi-value attributes, separated by hex 1D, which is the ASCII group separator, of course!

Does anyone have experience with similar migrations?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

计㈡愣 2024-10-12 11:23:17

我过去曾这样做过,但使用 MySQL 作为后端。我使用的方法是导出为 csv 或合并格式,并且它们使用 LOAD DATA INFILE 语句。

SQL Server 可能有类似的东西,也许这个链接会有所帮助 批量插入

I have done this in the past, but using MySQL as the backend. The method I use is to export as csv or merge format and them use the LOAD DATA INFILE statement.

SQL Server may have something similar, maybe this link would help bulk insert

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文