Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I have a big problem when I want to insert row in my data grid view and click insert button this error appearance :
The INSERT permission was denied on the object 'table name', database 'database name', schema 'dbo'.
what do I do?
Posted

1 solution

As the error says you don't have permission for that table so you need to give permission for access.
Ask your database administrator or read this

GRANT Object Permissions (Transact-SQL)[^]
 
Share this answer
 
Comments
walterhevedeich 9-Aug-11 1:14am    
Correct.
lilipoot 100 9-Aug-11 1:30am    
thanks
I read it but I don't understand compeletly
lilipoot 100 9-Aug-11 2:23am    
How do I give permission for access?
thatraja 9-Aug-11 2:34am    
You need to execute appropriate SQL commands for that. Read the documentation slowly. In that page you can find the below one
The following example grants SELECT permission to user RosaQdM on table Person.Address in the AdventureWorks database.
USE AdventureWorks;
GRANT SELECT ON OBJECT::Person.Address TO RosaQdM;
GO


If you are not familiar with these things please ask your database administrator or someone to help you.

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