string str = "Password=123456789;Persist Security Info=True;User ID=sa;Initial Catalog=学生成绩管理系统;Data Source=FLQ-PC\SQLEXPRESS";
连接字符串,Password=123456789密码
User ID=sa用户名
Persist Security Info=True 表示是否保存安全信息
Initial Catalog=学生成绩管理系统 数据库
Data Source=FLQ-PC\SQLEXPRESS 服务器
//整条语句是连接数据库的字符串
// string str = "Password=123456789(连接数据库的密码);
//Persist Security Info=True(是否安全登入);User ID=sa(登入数据库的用户名);
//Initial Catalog=学生成绩管理系统(具体连接那个数据库);Data Source=FLQ-PC\SQLEXPRESS(服务器名称)";