sp_OACreate is missing

5 pts.
Tags:
Microsoft SQL Server 2000
Microsoft Windows XP
sp_OACreate
SQL Server errors
SQL stored procedures
Stored Procedures
Hi I'm trying to create a stored procedure to send mail, and 1 line in my SP states: EXEC @hr = sp_OACreate 'CDONTS.NewMail', @MailID OUT But I get an error that sp_OACreate is missing. How it happened I don't know. But how do I fix the problem? Is it possible to recreate sp_OACreate manually? (Note that the statement is working on other machines, so it is specific to that server). The same also happens for sp_OACreate. I'm running SQL 2000 on Win XP. The full error message is: Cannot add rows to sysdepends for the current stored procedure because it depends on the missing object 'sp_OACreate'

Answer Wiki

Thanks. We'll let you know when a new response is added.

Grab the install CD for SQL Server 2000. On the disk in the INSTALL folder grab the odsole.sql file and run it in the master database on your server. This will install all the sp_OA procedures.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following