如何通过 ODBC 获取 Access 中详细的 PostgreSQL 错误?
使用 ODBC 接口驱动程序从命令行或 PG-Admin 等客户端运行查询时,有没有办法获取 PostgreSQL 显示的详细错误消息?
Access 中的 Err 对象只是告诉您出现了问题,但并不是很有帮助 - 我必须在 PG-Admin 中再次运行相同的查询才能查看问题出在哪里。
Is there a way to get the detailed error-messages PostgreSQL shows when running a query from command-line or a client like PG-Admin when using the ODBC-Interface-Driver?
The Err-object in Access just tells you that something went wrong but is not very helpful - I have to run the same query again in PG-Admin to see where the problem is.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
傻我啊! 只需要遍历 Errors 对象...
Silly me! Just have to iterate through the Errors-object...