Thursday, July 30, 2009

Learning database C#.net?

C# is commonly used with SQL Server. Using this you simply need to add a reference at the top of your code:


using System.Data.SqlClient;





Then use a SqlConnection, SqlCommand, and maybe a SqlDataReader. Set the connection up to reference your DB then create an SQL statement and execute the command. Then the DataReader will allow you to see each part.


Good Luck!

gerbera

No comments:

Post a Comment