为什么系统无法找到指定的文件?

时间:2016-05-17 06:42:01

标签: c# mysql

所以,我有这个代码,看起来我在第四行得到了一个错误。该错误具体是“系统找不到指定的文件”。我哪里出错,我该如何修复这个错误?

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);

0 个答案:

没有答案