Question

  Asked: Jul 23 2008   11:24 AM GMT
  Asked by: Kowalski


sp_OACreate is missing


sp_OACreate, Stored procedures, SQL Server errors, Windows XP, SQL Server 2000, SQL 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'

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on SQL Server, Database and Microsoft Windows.

Looking for relevant SQL Server Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Mrdenny  |   Jul 23 2008  4:04PM GMT

Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.