Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
I want to block a table(for insert, update, select) in mysql database until particular time period. is it possible to do with C#? please help me. :doh:

yes.. i want to block all these actions for some period of time.
possible?? if not any other ideas??
or can i block a specific aspx page instead of this?

thanks a lot for your replies
Chris Meech can you provide some code reference for your idea?
thank you very much Chris Meech for your reply..
I will try this..
Posted
Updated 31-Mar-10 19:17pm
v4

1 solution

You likely can accomplish this by deleting all permissions to the table at some point in time and then subsequently re-granting those permissions at a later time. This won't stop updates though by the owner of the table. I do not know of any way to prevent that.

This would assign permissions to a user or a role
grant select, insert, update, delete on TABLE to USER_NAME, ROLE_NAME;

This would remove those permissions
revoke select, insert, update, delete on TABLE from USER_NAME, ROLE_NAME;
 
Share this answer
 
v4

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