c# - How to open a database in asp.net web forms? -
I need to open a pre-existing database in C # with ASP.NET web form is. How to do the new database and how to create a table I <... If anyone knows how to do this, please let me know. > Thank you Open connection to the database. You will need the proper connection string The place to go is SqlConnection conn = new SqlConnection (yourConnectionString); Create a command This is the basic pattern.
string yourSQL = "SELECT FirstName FROM employees"; Perform a DataReader
Comments
Post a Comment