将文本文件转换为SQL Server Compact数据库(.sdf)

编程入门 行业动态 更新时间:2024-10-26 21:23:29
本文介绍了将文本文件转换为SQL Server Compact数据库(.sdf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好, 我有一个这种格式的文本文件: 2011/02/24动态列表显示1 -------------------------------------------------- ------------------------------------------- -------------------------------------------------- ------------------------------------------- | ItemNum | Plnt | SLoc | SL | BUn | QTY | Trans//Tfr | Qual.Insp.|限制|阻止|返回| -------------------------------------------------- ------------------------------------------- | 06326-50014-11 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650013-0132 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650233-0202 | 5212 | 300A | | EA | 2 | 0 | 0 | 0 | 0 | 0 | | 200-45394-0021 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | -------------------------------------------------- ------------------------------------------- | * | | | | EA | 273 | | | | | | -------------------------------------------------- ------------------------------------------- 我可以将此值转换为PC中的sql server compact数据库吗? 我需要将要转换为sdf(sqlserver数据库)的itemnumber和QTY. 这可能吗? 如果是,我该怎么办? 或在第二种情况下; 我有一个sdf(sql server紧凑型数据库).我想将数据库中的项目编号与上述文本文件中的项目编号进行比较.如果找到匹配项,则应在另一个报告中列出该项目编号,并指出找到了该项目编号.反之亦然. 是否可以在文本文件和数据库之间进行比较,还是需要先将文本文件转换为数据库才能进行比较? 有可能吗? 有任何想法吗?

Hello, I have a text file in this format : 02/24/2011 Dynamic List Display 1 --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- | ItemNum |Plnt|SLoc|SL|BUn|QTY |Trans./Tfr|Qual.Insp.|Restricted|Blocked|Returns| --------------------------------------------------------------------------------------------- | 06326-50014-11 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650013-0132 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650233-0202 |5212|300A| |EA | 2 | 0 | 0 | 0 | 0 | 0 | | 200-45394-0021 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | --------------------------------------------------------------------------------------------- |* | | | |EA | 273 | | | | | | --------------------------------------------------------------------------------------------- can i convert this values to sql server compact database in PC? i wan the itemnumber and the QTY to be converted to sdf(sqlserver database). Is this possible? If yes,how may i do this? or in second case; i have a sdf(sql server compact database).i wan to compare the item number in the database with the item number in above text file.if match found,it should list the itemnumber in another report says that itemnumber found.and vice-versa. is it possible to do comparison between textfile and database,or we need to convert the textfile first to database before we can do the comparison? which is possible? any ideas guys?

推荐答案

pwtc222, 看看此链接 [ ^ ] 希望对您有所帮助, :) Hi pwtc222, Take a look on this link[^] I hope this help, :)

- | 06326-50014-11 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650013-0132 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650233-0202 | 5212 | 300A | | EA | 2 | 0 | 0 | 0 | 0 | 0 | | 200-45394-0021 | 5212 | 300A | | EA | 1 | 0 | 0 | 0 | 0 | 0 | 如何比较文本文件 - | 06326-50014-11 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650013-0132 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | | 06650233-0202 |5212|300A| |EA | 2 | 0 | 0 | 0 | 0 | 0 | | 200-45394-0021 |5212|300A| |EA | 1 | 0 | 0 | 0 | 0 | 0 | how to compare text files

更多推荐

将文本文件转换为SQL Server Compact数据库(.sdf)

本文发布于:2023-07-09 00:21:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1082130.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   文本文件   数据库   Server   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!