ASP.NET2.0连接SQL Server数据库详解
01 public partial>02 { 03 protected void Page_Load(object sender, EventArgs e)04 {
05 string connectionString = "server=localhost;database=Northwind;
06 integrated security=SSPI";
07 SqlConnection mySqlConnection = new SqlConnection(connectionString);
08 using (mySqlConnection)
09 {
10 mySqlConnection.Open();
11 lblInfo.Text = "
页:
[1]