Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Sending SMTP email
I am trying to send SMTP email with attachment using cdosysmail and getting
error on this line:

EXEC @hr = sp_OAMethod @MailID, 'AddAttachment', NULL, @FileSource

Error message:

Msg 0, Level 11, State 0, Line 0

A severe error occurred on the current command. The results, if any, should
be discarded.

this store procedure is working on SQL 2000.

any help please.



Report this thread to moderator Post Follow-up to this message
Old Post
viktor
03-01-06 01:23 AM


RE: Sending SMTP email
Hi

Have you seen the example at http://www.aspfaq.com/show.asp?id=2403
also check out the xp_smtp_sendmail alternative as this should be alot
easier to implement.

You should also look at calling sp_OAGetErrorInfo to get error details.

John

"viktor" wrote:

> I am trying to send SMTP email with attachment using cdosysmail and gettin
g
> error on this line:
>
> EXEC @hr = sp_OAMethod @MailID, 'AddAttachment', NULL, @FileSource
>
> Error message:
>
> Msg 0, Level 11, State 0, Line 0
>
> A severe error occurred on the current command. The results, if any, shoul
d
> be discarded.
>
> this store procedure is working on SQL 2000.
>
> any help please.
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
John Bell
03-01-06 01:23 AM


Re: Sending SMTP email
I am getting this  error description:
Output values of type Object are not allowed in result sets

"John Bell" < jbellnewsposts@hotma
il.com> wrote in message
news:23B0BAE4-FE53-4859-A6D6- 97E00453FC1F@microso
ft.com...
> Hi
>
> Have you seen the example at http://www.aspfaq.com/show.asp?id=2403
> also check out the xp_smtp_sendmail alternative as this should be alot
> easier to implement.
>
> You should also look at calling sp_OAGetErrorInfo to get error details.
>
> John
>
> "viktor" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
viktor
03-01-06 01:23 AM


Re: Sending SMTP email
Hi

There is probably some error in the declarations of the variables you are
using. Try the code from the link I previously posted or from
http://tinyurl.com/r47n3

John

"viktor" wrote:

> I am getting this  error description:
> Output values of type Object are not allowed in result sets
>
> "John Bell" < jbellnewsposts@hotma
il.com> wrote in message
> news:23B0BAE4-FE53-4859-A6D6- 97E00453FC1F@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
John Bell
03-01-06 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:23 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006