Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

I've set up a home-based webserver, I can access my website from another pc .
when i access database from my own pc it is working properly, but when i tried
to accessed from another pc database part is not working,it displayed the error
that are as follow:
"EXECUTE permission denied on object 'procS_TBL_STUDENT_MARKS_STATUS_BY_SEATNO', database 'NatsunEduDB', schema 'dbo'."
>
Kindly response me

Thanks & Regards
sanju
Posted
Comments
Sunasara Imdadhusen 12-Nov-10 7:49am    
Could you able to connect it with SQL Server Management Studio?

Try using GRANT EXECUTE ON [storedProcName] TO [userName] on 'procS_TBL_STUDENT_MARKS_STATUS_BY_SEATNO' to make sure you give the appropriate permissions to the user accessing this stored procedure.
 
Share this answer
 
Hi,

Give the permision to your database like
sysadmin,public,security Admin,serveradmin etc..
And try accessing it.

Go to your database -> Right click on it -> Properties -> you can able to see the Permissions.

There you can able to set permissions to user.

If still you are having problem, check your accessed system user is having rights for the database.

Regards,
Kiran.
 
Share this answer
 
v2
Comments
Sandesh M Patil 12-Nov-10 9:41am    
Updated for better understanding. Simple solution
If you are using windows environment and MSSQL , it very much looks like you set up the database connection using the windows authentication. When you try to connect from a different computer it throws the error.

You need to change it to SQL server authentication.
You have to created a new login into your MSSQL, setup user name and password and use it in your connection string. Then it does not matter which computer you are using to get the website.

Good luck
 
Share this answer
 
Comments
vsanju 15-Nov-10 7:13am    
Thanks u so much

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