如何从基于文件的项目迁移到数据库项目? [英] how to move from a file based project to database project ?

查看:68
本文介绍了如何从基于文件的项目迁移到数据库项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个小型项目,保存了有关txt文件中联系人的数据,现在我想在数据库项目中更改它,该数据库项目应该保存表中的数据并从表中进行修改,更新和删除。我该怎么做 ?给我一个简单的方法。

i have made a mini project that saves data about contacts in txt files , now i want to change it in a database project that should save data in tables and retrve , update , remove from table. How can i do it ? Sugest me an easy method.

推荐答案

没有简单的方法 - 你必须开始阅读。

从这里开始:< a href =http://www.codeproject.com/Articles/4416/Beginners-guide-to-accessing-SQL-Server-through-C>通过C#访问SQL Server的初学者指南 [ ^ ]
There is no "easy method" - you will have to start reading.
Start here: Beginners guide to accessing SQL Server through C#[^]


如果您使用的是SQL Server,可以使用向导导入文本文件。



https://msdn.microsoft.com/en-us/library/ms141209.aspx [ ^ ]
If you're using SQL server you can import your text file with the wizard.

https://msdn.microsoft.com/en-us/library/ms141209.aspx[^]


快速回答(它应该很快)是:使用ADO.NET:

https:// en.wikipedia.org/wiki/ ADO.NET [ ^ ],

http://msdn2.microsoft.com/en-us/library/aa286484。 aspx [ ^ ]。



此CodeProject文章将帮助您立即开始:为初学者使用ADO.NET [ ^ ]。



-SA
Quick answer (and it's supposed to be quick) is: use ADO.NET:
https://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn2.microsoft.com/en-us/library/aa286484.aspx[^].

This CodeProject article will help you to get started in no time: Using ADO.NET for beginners[^].

—SA

这篇关于如何从基于文件的项目迁移到数据库项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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