所以,我有这个代码,看起来我在第四行得到了一个错误。该错误具体是“系统找不到指定的文件”。我哪里出错,我该如何修复这个错误?
SqlConnection con = new SqlConnection(@"server=localhost;user id=root;database=localhost");
SqlDataAdapter sda = new SqlDataAdapter("Select Role from accounts Where Username='" + UserNameBox.Text + "' and Password='" + PasswordBox.Text +"'", con);
DataTable dt = new DataTable();
sda.Fill(dt);