BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

print messages

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Dolphin
Guest





PostPosted: Mon May 17, 2004 11:27 am    Post subject: print messages Reply with 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?


Back to top
Jeremy Collins
Guest





PostPosted: Mon May 17, 2004 11:54 am    Post subject: Re: print messages Reply with quote



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





PostPosted: Mon May 17, 2004 1:08 pm    Post subject: Re: print messages Reply with quote



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





PostPosted: Mon May 17, 2004 1:16 pm    Post subject: Re: print messages Reply with quote

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





PostPosted: Mon May 17, 2004 1:51 pm    Post subject: Re: print messages Reply with quote

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





PostPosted: Mon May 17, 2004 3:51 pm    Post subject: Re: print messages Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.