Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted

There is no "easy method" - you will have to start reading.
Start here: Beginners guide to accessing SQL Server through C#[^]
 
Share this answer
 
If you're using SQL server you can import your text file with the wizard.

https://msdn.microsoft.com/en-us/library/ms141209.aspx[^]
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900