Click here to Skip to main content
15,914,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey hi everyone,
I am very new to .NET.
Please any one tell me steps for database connectivity step by step.
Thanks in advance.
Posted

See here[^].
 
Share this answer
 
Navigate the Given Link to learn how to connect database
How to: Connect to a Database (C#)[^]

and read thread of this forum
How to connect to SQL Database with C#[^]
 
Share this answer
 
Well you can use ADO.NET to query your database. Take advantage of its disconnected architecture. You will see loads of information on the internet on googling for ADO.NET.
Basically, you have to first open the connection by specifying the connection string and then do Insert, delete or update using ExecuteNonQuery and then close the connection.

In a disconnected architecture, u don't have to take care of opening and closing the connection because SqlAdapter takes care of it. Fill the dataset, update or delete or insert the rows or columns you want.

Google for it and u will find lots of tutorials.
Microsoft ADO.NET Core Reference is a very good book and very explanative!
Good luck!:thumbsup:
 
Share this answer
 
Comments
Abhinav S 20-Dec-10 13:06pm    
Nice answer!
Tarun.K.S 21-Dec-10 0:10am    
Thanks!

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