Fardreamer wrote:
Quote:
Update: So, I went to the database server and logged in as an
administrator. What do I see? 3 message boxes with the title "SSP
PrintVal" showing the three messages I tried to PRINT from my stored
procedure! What kind of weird behavior is that? Is there any way to
disable it? |
This is actually documented behavior -- and mainly useless for
developers. The PRINT function seems to have been solely implemented
to enable debugging, and was designed for the local engine. When you
issue the PRINT command, the dialog box does indeed show up whereever
the engine is located (on the server for a client/server engine).
Want one better? Your procedures did not hang -- they were awaiting
the completion of the PRINT command. If you had simply gone to the
server and clicked OK on the dialog box, it would have proceeded and
terminated normally.
In short, use PRINT **ONLY** for debugging your procs. If you must
return some message, consider building an entry in a Log File somewhere
and having the user view that periodically.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive.SQL Service & Support - November, 2005 ***
*** Chicago: Pervasive DataExchange Class - November, 2005 ***