0

Pls, i'm new to programming and i need to create c# database can somebody help me with creating database.......

3
Contributors
3
Replies
13
Views
3 Years
Discussion Span
Last Post by JorgeM
2

I think you mean that you need to connect to a database using C#. What database platform...MSSQL, MySQL, etc.?

you'll need to provide additional information and some put reasonable effort to get the best guidance.

Votes + Comments
ok, i created a c# form for a school library.. so i need a MYSQL database to save the students info. and books collected so that when they are returning we will get notification if the book belongs to the student or another student...
2

You'll need to take one step at a time, no one is going to give you the answers to the entire project in this thread.

Here is some stuff you need to work on first. Since you are connecting to MySQL, you'll need to have installed the MySQL DB and MySQL Connector/NET. You can download installers from http://dev.mysql.com/downloads. Once you have the DB, to connect to it, you need to reference the MySql.Data.dll library. I assume that you are using Visual Studio to develop this.

Once you have that working, its just a matter of creating the connection in your code by establishing a connection string, create a connection, open it, do your SQL stuff, then close the connection.

There are quite a bit of examples in other threads on this site, all over the Internet, etc..

Votes + Comments
thanks a lot ........
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.