是否可以创建自动VB应用程序? [英] Is it possible to create an automatic VB application?

查看:74
本文介绍了是否可以创建自动VB应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助..我的上司要我创建一个程序,检测输入到数据库的新数据,该程序将自动执行其功能?

这可能吗?我知道很难理解我在说什么这样的样品。



样品流程:



来自网络 - >用户输入信息并提交信息。

- >数据将保存到数据库



并从数据库中..



vb app - - >将检测从数据库中保存的新数据

- >程序本身将从DB获取新保存的数据

- >然后程序单独执行其功能(例如执行计算)

- >执行后,结果将保存到数据库中,用户将能够看到结果。





我希望你能理解我的任务是什么。我真的需要证明这是不可能的 IF 我是对的..如果没有,我希望你能帮助我。



我尝试了什么:



我没有尝试过任何东西,因为我对此一无所知。



注意:

检测输入到数据库的新数据是触发vb程序,NO按钮或任何其他保存函数的控件的唯一方式。

Please help.. my superior wanted me to create a program that detects a new data entered to the database and that program will automatically perform its function?
Is that possible? I know it's hard to understand what im saying so here's the sample.

sample process:

From web --> the user enters information and submits it.
--> the data will be saved to a database

And from the database..

the vb app --> will detect the new data saved from the database
--> the program itself will fetch the NEWLY saved data from DB
--> then the program alone executes its function (e.g perform calculation)
--> after it executes, the result will be saved to the DB and the user will be able to see the result.


I hope you can understand what my task is. I really need proof that it's impossible IF i'm right.. and if not, i hope you can help me.

What I have tried:

I haven't tried anything because I have no idea about this.

NOTE:
The detection of the new data entered to the database was the ONLY WAY that triggers the vb program, NO buttons or any other controls that holds the function.

推荐答案

请参阅此处:从SQL触发器调用DLL或EXE文件 [ ^ ] - 请注意警告!
See here: Call a DLL or EXE file from SQL Trigger[^] - do note the caveats!


好像,你在谈论使用SqlDependency检测更改Microsoft Docs [ ^ ]



请阅读:

使用SqlDependency进行数据更改事件 [ ^ ]

使用SqlDependency和SqlCacheDependency进行查询通知 [ ^ ]
Seems, you're talking about Detecting Changes with SqlDependency | Microsoft Docs[^]

Please, read this:
Using SqlDependency for data change events[^]
Query Notification using SqlDependency and SqlCacheDependency[^]


这篇关于是否可以创建自动VB应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆