打印声明打破odbc调用 [英] Print statement breaking odbc call

查看:95
本文介绍了打印声明打破odbc调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



在C ++应用程序中使用ODBC SQL_OV_ODBC3_80和SQL Server Native Client 11驱动程序。



麻烦的是,有几个存储过程的打印语句打破了ODBC调用。



有没有无论如何我可以在不删除打印报表的情况下绕过这个?



干杯。



找到解决方案



我尝试了什么:



我只需要知道ODBC支持TSQL打印语句

Hi all

Using ODBC SQL_OV_ODBC3_80 with SQL Server Native Client 11 driver within a C++ app.

Trouble is that several stored procedures have print statements which is breaking the ODBC calls.

Is there anyway I can get round this without removing the print statements?

Cheers.

Found the soloution

What I have tried:

I just need to know if ODBC supports the TSQL print statement

推荐答案

如果我没记错,您应该调查SQLSTATE以确定错误是真实错误还是警告。



看看附录A:ODBC错误代码| Microsoft Docs [ ^ ]
If I recall correctly, you should investigate the SQLSTATE in order to decide if the error is a real error or a warning.

Have a look at Appendix A: ODBC Error Codes | Microsoft Docs[^]


这篇关于打印声明打破odbc调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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