Click here to Skip to main content
15,883,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have Admin database which has a stored procedure. This stored procedure retrieves the data from different reporting databases based on the connection provided. For granting the execute rigths to SP, I have created the Login at SQL server level and mapped the Admin database to it.
When I execute the stored procedure using Windows Application, it works for one of the reporting database whereas it gives execute permission denied error for other reporting database.

Can you please suggest how to handle this?

Thanks in Advance,
KD
Posted

Did you grant permission for the account on the other database? You have to do it for each database you want to run the stored proc on...
 
Share this answer
 
Can you please direct me on how to grant the permission for a database?

But I am curious as it is working for a one reporting DB and not for other. Also I have not given permission to first reporting DB on which it is working on..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900