 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dolphin Guest
|
Posted: Mon May 17, 2004 11:27 am Post subject: print messages |
|
|
Hi,
I'm using delphi 6, sql server and I'm using ado components;
How can I show trigger, stored proc 's print messages in my delphi
application?
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Mon May 17, 2004 11:54 am Post subject: Re: print messages |
|
|
Dolphin wrote:
| Quote: | Hi,
I'm using delphi 6, sql server and I'm using ado components;
How can I show trigger, stored proc 's print messages in my delphi
application?
|
Iterate the Errors collection of your ADO component:
http://support.microsoft.com/default.aspx?scid=kb;en-us;194792
(Although I must confess when I tried this a while
ago in VB, I only got the RAISERROR messages returned).
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
noki Guest
|
Posted: Mon May 17, 2004 1:08 pm Post subject: Re: print messages |
|
|
Hi Jeremy,
"Error collection of AdoCompnent" shows only RaiseErrors. It isn't show
print messages.
"Jeremy Collins" <jd.collins (AT) ntlworld-not (DOT) com> wrote
| Quote: | Dolphin wrote:
Hi,
I'm using delphi 6, sql server and I'm using ado components;
How can I show trigger, stored proc 's print messages in my delphi
application?
Iterate the Errors collection of your ADO component:
http://support.microsoft.com/default.aspx?scid=kb;en-us;194792
(Although I must confess when I tried this a while
ago in VB, I only got the RAISERROR messages returned).
--
jc
Remove the -not from email
|
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Mon May 17, 2004 1:16 pm Post subject: Re: print messages |
|
|
noki wrote:
| Quote: | Hi Jeremy,
"Error collection of AdoCompnent" shows only RaiseErrors. It isn't show
print messages.
|
From the article:
"PRINT statements in SQL Server can also populate the ADO errors
collection. However, PRINT statements are severity level zero (0) so, at
least one RAISERROR statement is required in the stored procedure to
retrieve a PRINT statement with ADO through the Errors collection."
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
noki Guest
|
Posted: Mon May 17, 2004 1:51 pm Post subject: Re: print messages |
|
|
Sory, I don't know this.
But I haven't showed print messages in Delphi. (in spite of using error
collection)
"Jeremy Collins" <jd.collins (AT) ntlworld-not (DOT) com> wrote
| Quote: | noki wrote:
Hi Jeremy,
"Error collection of AdoCompnent" shows only RaiseErrors. It isn't show
print messages.
From the article:
"PRINT statements in SQL Server can also populate the ADO errors
collection. However, PRINT statements are severity level zero (0) so, at
least one RAISERROR statement is required in the stored procedure to
retrieve a PRINT statement with ADO through the Errors collection."
--
jc
Remove the -not from email
|
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Mon May 17, 2004 3:51 pm Post subject: Re: print messages |
|
|
noki wrote:
| Quote: | Sory, I don't know this.
But I haven't showed print messages in Delphi. (in spite of using error
collection)
|
Hey, it's an MSDN article - I make no guarantees to
whether it actually *works* or not ;-)
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|