Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Permissions to delete Stored Procedures

$
0
0

Hi,

I have a database MainSys with a stored procedure that will back-up the database and then restore it to a new database TestSys.

Within the MainSys database there are several objects including a stored procedure (refresh_test) for creating the test database.

I would like to delete these objects from the TestSys database after it is created from the restore.

When I try to add this to the script, I get an error saying that the object does not exist or that I did not have permission to delete it.

When I run the Stored Procedure to create the TestSys DB, I am currently signed in as sa but I would like to be able to call the SProc via the User Application.

What permissions and Users do I need to assign to the Stored Proc (refresh_test) so that it can delete the specific objects from the restored database?

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>