刷新 SQL 数据库连接

2021-09-16 00:00:00 vb.net sql-server

如何将 VB 应用程序中的数据库连接刷新到 SQL Server 2005,以便每当 SQL 中的数据发生更改时,应用程序都会获取此类更改?目前,该应用程序仅在重新启动后才会进行更改,而这不是我想要的.

How do you refresh a database connection within a VB application to SQL Server 2005 so that whenever data is changed in SQL, such changes are picked up by the application? For now the application only picks up the changes after it has been restarted, and that is not what I want.

推荐答案

您可能没有将更改提交到数据库.或者不再运行查询.

You are probably not commiting your chanes to the database. either that or not running the query again.

相关文章