Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change owner of a stored procedure

Status
Not open for further replies.

jfield817

Programmer
Jun 2, 2000
153
US
Using SQL Server 7.0 .....
The owner of a stored procedure was dbo, however I entered the query manager under a different login id and pw and changed a stored procedure and saved it .

Now the table is owned by the name I logged in with ....

How do I restore the dbo ownership of that stored procedure ?

Thanks,
John
 
Robert,

So then I assume that the syntax would be:
EXEC sp_changeobjectowner 'procname', 'dbo'

Thanks,
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top