Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can not delete record

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hi

I log in as 'sa' and I want to delete some records of TableA, but get error message of "Only the author of this record can delete it. Trasaction roll back"

What and why can this happen? Strangerly I am able to delete some records on the previously day!

Any discussion is appreciate.
Thanks
 
Sounds like someone (the table's owner?) put a trigger on the table in question (perhaps because they were unhappy with your having deleted records the previous day ;~) ). At least that's the only way I know you'd get an error like that.

If the owner of the table had revoked delete permission for 'dbo'--that's 'SA' in the DB in question, then you'd get a different message ('delete permission denied ...').

The trigger must be written with a check for the specific user_id() of the owner of the table (presumably with a hard-coded value or set of values that the author of the trigger thinks is/are valid).

HTH,

J M Craig
Alpha-G Consulting, LLC
nsjmcraig@netscape.net
 
Oh my !

If I am in front of you right now, I will bow you and call you "Master".

Your analysis is so right. Yeah, someone has change (rem out) the trigger the other day so that I "accident" to be able to delete a record, after that he/she sets back to check only userid() can delete his/her records only, even sa id can not delete records either.

Thanks for your response.
 
Sorry it took so long to get you the answer!

[thumbsup]
Cheers,

John
nsjmcraig@netscape.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top