Hello All,
This Code about ADO.NET in .NET.
How to deal with [ADO.NET]Data Access Object in .NET Framework explain in this Article.
It's really very userfull.
e.g
string commandText = "SELECT ID, empID,empname,empaddress FROM dbo.Employee;"; using (SqlConnection connection = new SqlConnection("server=(local);database=Employee;Trusted_Connection=yes")); { using (SqlCommand command = new SqlCommand(commandText, connection)) { connection.Open(); using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) { } } } } }
for further infomration open "http://dotnetheavens.blogspot.com/"
For more details, visit http://dotnetheavens.blogspot.com/
|
No responses found. Be the first to respond and make money from revenue sharing program.
|