如何通过.net应用程序从主机读取文本文件?

发布于 2024-09-26 14:49:15 字数 60 浏览 1 评论 0原文

一些纯文本文件存储在大型机服务器中,我必须读取该文件并将数据填充到 SQL 数据库中。 有什么想法请提出。

Some plain text file is stored in mainframe server, i have to read the file and populate the data to SQL database.
Any ideas please suggest.

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

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

发布评论

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

评论(2

梦亿 2024-10-03 14:49:15

假设它是 PDS FTP 中的成员,将该成员下载到 PC,对其进行解析,并将数据插入到 SQL Server 数据库中。在没有更多信息的情况下,这就是我能给你的最好的想法。

Assuming it's a member in a PDS FTP the member down to the PC, parse it, and insert the data into the SQL Server database. With out more information that's the best idea I can give you.

桃气十足 2024-10-03 14:49:15

我会采纳 Jared 的第二个建议,但补充一点,如果您通过 FTP 传输数据,请确保指定 FTP 选项 ASCII 和 CRLF(对于纯文本)。这会将 EBCDIC 字符集转换为 ASCII 并将 CRLF 记录分隔符附加到文本文件中的每个记录。

I'll 2nd Jared's suggestion but add that if you FTP the data make sure you specify the FTP options ASCII and CRLF (for plain text). This will translate the EBCDIC characterset to ASCII and append the CRLF record delimiter to each record in the text file.

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