缺少数据更新

发布于 2024-08-06 01:12:24 字数 856 浏览 2 评论 0原文

我在妻子办公室的 CRM 上遇到数据未更新的问题。

场景:

  1. 用户加载应用程序。
  2. 来自数据库的数据填充主视图。
  3. 用户打开编辑屏幕。
  4. 数据已填充为正确的详细信息项。
  5. 用户更改值(在任何字段上)。
  6. 保存按钮变为活动状态 数据改变。
  7. 用户单击“保存”。
  8. 数据在编辑屏幕上刷新(以证明更新已完成),并且原始数据恢复到编辑屏幕。
  9. 保存按钮被禁用。
  10. 查看主数据网格, 在编辑屏幕后面,数据 似乎已更新。
  11. 关闭编辑界面,新建数据 在主视图中仍然可见。
  12. 点击刷新主数据 恢复到原来的内容。

所有更改都会丢失。

如果我在我的开发网络上运行完全相同的场景,数据库就会更新。

那么这两种环境有什么不同呢?办公室有一个域名。我正在使用 SQL 身份验证,所以这应该不重要。我正在为我的测试数据库服务器运行带有 MS SQL 2005 EE VM 的 Win2003 EE,它模仿办公室数据库服务器。我使用生产数据库的备份来填充我的开发数据库。我已经仔细检查了 SQL 用户权限。事件查看器或数据库服务器上的 SQL 日志中没有错误。所有工作站都是Win7 Ent。我家里运行x64,而办公室机器是x86。在我的机器上浏览代码并不能提供任何见解,因为一切都在我的开发环境中运行。

该应用程序自 2008 年 12 月以来一直存在。我至少每月更新一次。
单击一次部署。

我需要运行 SQL Profiler 来获取更多信息。除此之外,我一无所知。到底发生了什么?为什么它在开发中有效,而在生产中无效?关于如何追踪这个问题有什么建议吗?

谢谢,

伊万

I am having a problem with data not updating on the CRM at my wife's office.

Scenario:

  1. User loads the app.
  2. Data from the DB populates the master view.
  3. User opens edit screen.
  4. Data is populated for the correct detail item.
  5. User changes a value (on any field).
  6. The save button becomes active with
    the data change.
  7. The user clicks on save.
  8. The data is refreshed on the edit screen (to prove the update took) and the original data is restored to the edit screen.
  9. The save button is disabled.
  10. Looking at the master data grid,
    behind the edit screen, the data
    appears to be updated.
  11. Close the edit screen, the new data
    is still visible in the master view.
  12. Click on refresh and the master data
    reverts to the original content.

All changes are lost.

If I run the exact same scenario on my dev network, the database IS updated.

So what is different between the two environments? There is a domain at the office. I'm using SQL Authentication so it shouldn't matter. I'm running a Win2003 EE with MS SQL 2005 EE VM for my test DB server, which mimics the office DB server. I use backups of the production DB to populate my dev DB. I have double-checked the SQL user permissions. There are no errors in the Event Viewer or in the SQL logs on the DB server. All workstations are Win7 Ent. I run x64 at home, while the office machines are x86. Walking through the code on my machine doesn't provide any insight because everything works in my dev environment.

The app has been around since December 2008. I do monthly updates at a minimum.
ClickOnce deployment.

I need to run SQL Profiler to gatehr more info. Beyond that, I'm clueless. What is really happening? Why does it work in dev and not in prod? Any suggestions on how to track this down?

Thx,

Ivan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你是我的挚爱i 2024-08-13 01:12:24

启动应用程序后,但在单击“保存”之前,在 sql server management studio 中重命名该表。查看应用程序是否抛出有关表不存在的错误。如果没有收到错误,则 C# 不会尝试更新数据库。如果出现错误,请重命名表,在表上添加触发器以写入日志表,重新启动应用程序,然后尝试保存。检查日志表,是否插入了任何内容?从那里开始。

after starting the application, but just before save is clicked, rename the table in sql server management studio. See if the application throws an error about the table not existing. If you don't get an error, then C# isn't trying to update the database. if you get the error rename the table back, add a trigger on the table to write to a log table, restart the application, and try the save. check in the log table, did it insert anything? go from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文