【发布时间】:2016-09-22 23:39:29
【问题描述】:
我必须使用 Tableadopter 开发项目。实际上有效,但是当我更改 SQL Server 密码时不起作用。所以我的项目也完全损坏了我在 6 月 10 日的最后一年项目提交日期。突然间,我遇到了这个问题,请帮帮我....
更新:
private void Form_admin_Load(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=LAB-2\\SQLEXPRESS; Initial Catalog=HRPay; Persist Security Info = True; User ID =smart; Password =smart123");
con.Open();
// TODO: This line of code loads data into the 'hRPayDataSet8.EmployeeQulaification' table. You can move, or remove it, as needed.
this.employeeQulaificationTableAdapter1.Fill(this.hRPayDataSet8.EmployeeQulaification);
}
【问题讨论】:
-
如果没有代码,我们无法为您提供帮助,我们无能为力
-
什么时候有效?如何?如图所示,它是否有效?您所说的“更改 SqlServer 密码”是什么意思...与显示的内容不同?根本不清楚你在问什么。
-
@DonBoitnott 实际上它工作了 2 个小时,然后我更改了 SQLServerManagementStudio 登录密码无效。
标签: c# sql-server winforms dataset tableadapter