Home All Groups Group Topic Archive Search About

replacing dblibray with ADO

Author
27 Nov 2006 4:39 PM
Carlo Capelli
I need to replace the old interface DbLibrary from C++ code (ntwdblib.dll),
replacing with ADO
(i.e. using #import <msado15.dll>).
One handy functionality the DbLibrary had was dberrhandle(my_error_handler)
and
dbmsghandler(my_msg_handler), that was called from PRINT statements issued
inside  T-SQL stored procedures, allowing me to control (and also stop) some
lengthy task advancing.
Using ADO, how can I get similar behaviour, i.e. getting output from PRINT
statements?

Many thanks for any suggestion

Bye Carlo

AddThis Social Bookmark Button