【问题标题】:Filling datasets by using Tableadapters is not working使用 Tableadapter 填充数据集不起作用
【发布时间】: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


【解决方案1】:

将您的 SQL 密码改回“Smart123”。

或者将连接字符串中的密码更改为新的 SQL Server 密码。

【讨论】:

  • 是的它的工作。实际上我再次更改了我的旧密码正常工作。很高兴你的帮助:) :)
猜你喜欢
  • 2013-03-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-27
  • 2016-11-08
  • 2013-11-27
  • 2018-01-19
  • 2012-03-04
相关资源
最近更新 更多