Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 permission of user in sql

Author  Topic 

amirs
Constraint Violating Yak Guru

260 Posts

Posted - 2013-05-27 : 23:16:01
Dear Members

If one of my table i have write a trigger to insert records.i have insert records in sql query this is work fine. but i have insert a record in use application i got a following error in event viewer.this application connect a different sql username.i have done all the permission of user.

Event Type: Error
Event Source: Application Name
Event Category: Msql7_srv
Event ID: 1000
Date: 5/28/2013
Time: 8:17:29 AM
User: computername\username
Computer: computername
Description:
Env (d:\app-path)
Keyword MSQL Messages
Username username type S language 2
Process 0x1fe4
Lasterror 0
Errno 0
bdberrno 0
Message
dbs_errno = 1297 Error 1297 occurred:
Error sqlcode 297 (sqlstate: 42000, Return code: -1, diagRecNum: 1) during SQLExecute.
[Microsoft][ODBC SQL Server Driver][SQL Server]The user does not have permission to perform this action.
Flushed at \db\servers\MSQL\msql_error.c : #504.

any one can help me what is error.
where i can permission of user

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-05-28 : 00:02:42
refer this link http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/e52fd13f-8b5f-4bb5-bc44-bda50b4d626e
I think you need to have the EXECUTE AS permission for that TRIGGER

--
Chandu
Go to Top of Page
   

- Advertisement -