如何从不返回记录集的ADO Execute中读取消息?

时间:2017-12-22 16:39:40

标签: excel vba ado adodb execute

我正在使用VBA并向ADODB发送查询,即Conn.Execute方法。

如何检索邮件?举个例子:

ORA-00942: table or view does not exist

1,670 rows inserted.

Error starting at line : 19 in command -
TRUNCATE TABLE SYSBO.GA_OPS_TMP_ORDERS
Error report -
ORA-01031: insufficient privileges
01031. 00000 -  "insufficient privileges"
*Cause:    An attempt was made to perform a database operation without
           the necessary privileges.
*Action:   Ask your database administrator or designated security
           administrator to grant you the necessary privileges

0 个答案:

没有答案