问题描述
我在 Oracle 数据库中有一个带参数的存储过程.
I have a stored procedure with parameters in an Oracle database.
如何从 Excel VBA 脚本中调用它?
How do I call it from within an Excel VBA script?
推荐答案
为了让它发挥作用,您必须做好很多工作.试试这个指南.
There's a lot of plumbing you have to get right in order to get this to work. Try this guide.
它包含此示例.它假设您已经引用了 ADO,您已经下载了 Oracle 的 OleDB 提供程序,并且您已经设置了 TNSNames.ora 文件.如果您不想使用 TNSNames.ora,您可以尝试替代 连接字符串
It includes this sample. It assumes you've made a reference to ADO, you've downloaded the OleDB provider for Oracle, and you've set up the TNSNames.ora file. If you don't want to use TNSNames.ora you can try an alternative connection string
如果遇到问题,可以回来问更具体的问题.
If you run into problems you can come back and ask a more specific question.
这篇关于如何从 Excel VBA 脚本调用 Oracle 存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!