I am just new in C#, somebody can you give me code for MS SQL server connection, on how to call records, add, edit and delete records...THANK YOU

Recommended Answers

All 3 Replies

can you give me some sample application on c# application with sql connection?include the codes.. help plz..


a simple code for opening a Database-connection

OleDbConnection myConn = new OleDbConnection ( );
myConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=myData.mdb";
myConn.Open ( );

//do something here
catch (Exception ex)
 // do exception-handling

i hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.