Hi,
I am just rushing home at the end of the day, so let me give you a short explanation on how to go about. Sorry, if I haven't given you the entire explanation on how to do it.
The following query will give you all the Stored Procedures.
You can loop through them using WHILE construct and drop them once by one. Here you go,
select a.name from sysobjects a, sysusers b, master..syslogins c where b.suid=c.suid and a.uid=b.uid and c.loginname="<USER_NAME>" and a.type="P"
<USER_NAME> is what the USER you meant. First run this Query carefully and check if the SPs listed are all the User SPs. Then go on to drop them.
Really sorry if I have not given you enough information.
May be some one got a better answer.
Cheers!!!
-Vijay G
|