如何通过.net应用程序从主机读取文本文件?
一些纯文本文件存储在大型机服务器中,我必须读取该文件并将数据填充到 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设它是 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.
我会采纳 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.