qlConnectionStringBuilder b = new SqlConnectionStringBuilder()
b.DataSource = @"."//本地数据库
b.IntegratedSecurity = true
b.InitialCatalog = "northwind"//数据库名
String conStr = b.ConnectionString
SqlConnection con = new SqlConnection(conStr)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)