Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the query analyser inside Dev machine, I can run a sql query which connects to prod machine and retrieves data.
Note that I am the admin user...
If this query is run inside an application which is run by a standard user, then the user gets an error message which is login failed.
Note that the standard users do have access to prod data as they are currently using an app which points them to the prod machine.
The issue only arises when the standard users use that sql explained above inside the Dev app.
Question:
Do you know why the standard users can not run the sql (points to prod data) from within the Dev app whereas they can run it from the Prod app?
Thanks
Posted

1 solution

If the error message is correct, the user doesn't have access to the database at all. Meaning that there is no login/database user in the SQL Server for that user.

To your question, why this is different in another database, could it be that you either
- have a valid login/user in that server
- you're actually using public privileges.
 
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