I will explain it in C# which is the language in .net to write programs.
Its simple as you think. First of all create database using SQL2005 or any version you have. To create a database you need to use sql commands. That i will give you. But first of all u need sql, install it. you can install sql2005 express and sql 2005 management studio(both should be installed).
after that open it in start>sql2005>sql2005 management studio. now in file new queary. write this command
create database <database name>;
database name its ue wish u can name it as bank or accountsdb. Example:-
create database accountsdb;
and compile it using sql u will have a play button in toolbar just press it. It will compile and your databse will be created. Next create tables select database by using.
use <database name="">;</database>
and compile. create a table according to u r requirements. Now in visual studio. Create a new windows forum. Import the name space at the top.
using System.Data.Sqlclient;
Next Connect your windows forum to database. This method is called ADO.NET in .net. Next is Connection string which specifies where to connect and whome to connect and what kind of database and what is databse. use this line
SqlConnection con=new SqlConnection
("Here you have to give the connection string"); connection string means which hols connecton data like connection name,type security,database user name and password deatails, command to be exicuted for sql. means u want to see data in a tabel or write a data in table or update exising tabe with new values.
for this u need to use
SqlCommand comm=new SqlCommand();