The only reason I think of is, the user id which is calling this SP doesn't have proper rights to the database name you pass in your SP. Please ask your DBA team to provide that.
↧