标签:
SQL Server Express数据库连接字符串:
con.ConnectionString =@"Data Source=localhost\SQLEXPRESS;Initial Catalog=databasename;Integrated Security=false;uid=sa;
pwd=password";
Initial Catalog:数据库名称。
Integrated Security:false表示使用SQL Server身份认证(sa,password),true表示使用Windows身份认证。
示例:
需要加一个Label控件
完整实验代码:
}
标签:
原文地址:http://www.cnblogs.com/bluewhy/p/5050652.html