You are here: Re: xp_startmail return code checking « MsSQL Server « IT news, forums, messages
Re: xp_startmail return code checking

Posted by John Bell on 10/01/72 11:18

Hi

You don't say what your client is written in! ADO has an errors collection
that should contain the error, see the topic "Handling Errors and Messages
in ADO" for an overview.

John

"Mark" <markandersen@evare.com> wrote in message
news:1118430069.363348.314030@g43g2000cwa.googlegroups.com...
> xp_startmail is documented as returning two code: 0 success, 1 failure.
> It would be nice to check the return code.
>
> When mail has already been started it returns a 1. This case appears
> indistinguishable from a failure to start. (MSFT should have provided
> separate return codes for failure-already started, and failure-cannot
> start, but they did not.)
>
> Does anyone know how to distinguish these cases. Text is printed
> indicating that it has already been started but I don't know how to
> programmatically grab this case.
>
> It seems the conventional workaround is not to check the return code at
> all (or to start mail once at server startup and never start it again).
> Neither is ideal.
>
> Suggestions?
>
> Thanks,
> Mark Andersen
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация