示例代码将.mdb文件转换为mysql [英] sample code to convert .mdb files to mysql

查看:267
本文介绍了示例代码将.mdb文件转换为mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,有一个页面,用户可以在其中浏览 mdb 文件,并可以保存 mdb 将文件放入我的mysql表格。

有人可以帮我吗?

我需要c#.net中的所有内容。

是有没有执行此类操作的API?



请帮助。它的紧急



谢谢

In my application, a page is there, where a user can browse for an mdb files and can save the data of mdb files into my mysql table.
Can anybody help me in this ?
I need everything in c#.net.
Is there any API that perform such actions?

Please help. Its urgent.

Thanks

推荐答案

如果你想做的话使用C# -

您需要读取访问表中的模式,并使用ADO.Net在My Sql中创建类似的模式。

然后动态读取数据表中的每一行通过Reader或者适配器将数据转储到mysql中。



但是,如果这个操作只是第一次,我认为,转换Access数据库会更好使用一些第三方工具到我的Sql -



很少有链接可能会有所帮助 -



访问MySQL [ ^ ]



如何导入Microsoft Access da使用c#进入mySQL:[ ^ ]



希望这有助于

欢呼
If this something you wanna do with C# -
You need to read the schema in access table and create a similar schema in My Sql using ADO.Net.
Then dynamically read each rows in data table either through Reader or adapter and dump the data into mysql.

But, if this operation is only for the first time, I think, it would be better to convert Access database to My Sql using some 3rd party tool -

Few links which could be helpful -

Access To MySQL[^]

How to import a Microsoft Access database into mySQL by using c#[^]

Hope this helps
cheers


一个简单的谷歌搜索显示了很多''转换器''。作为示例,您可以使用 - http://mdbtools.sourceforge.net/ [ ^ ]
A simple google search reveals a lot of ''converters''. As an example you can use - http://mdbtools.sourceforge.net/[^]


这篇关于示例代码将.mdb文件转换为mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆