Today, we learned how to connect to a database and to make changes to the data. We used SqlCommand, SqlDataReader, SqlConnection objects. To perform DDL queries we use ExecuteNonQuery method and for others we use ExecuteReader method of SqlCommand class. These are the basics that are needed to do database connectivity and editing.
Then we tried to use the grid and get the data from the grid, but we couldn't. We could just display the data in the table after everyone run which happens by default. Finally, we created a windows application using C# that takes data from the user, stores it in the database, and if the user wants to know the data present in the database also, he can do it by clicking a button.
And we are njoying working here. Learning new things not in a traditional way. basically, widout exms n all.. learn and apply what we learnt.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment