Re: Trigger Question

From: vul (aaa_at_optonline.net)
Date: 12/03/04


Date: Fri, 3 Dec 2004 13:22:46 -0500

Thank you.
Everything looks correct for me. But trigger doesn't work as I expected.
Al

"Rajesh Peddireddy" <anonymous@discussions.microsoft.com> wrote in message
news:052201c4d958$fe439d50$a501280a@phx.gbl...
> Hey
>
> Just check the login name and owner of the object related
> stuff..
>
> Its just an idea ..
>
> Thanks
> Rajesh Peddireddy
>
>
>
> >-----Original Message-----
> >I have a trigger:
> >
> >CREATE TRIGGER Ordr_Delete ON [dbo].[Ordr]
> >FOR DELETE
> >AS
> >DECLARE @OrderID int
> >SELECT @OrderID=OrderID FROM deleted
> >DELETE FROM OrderDetail WHERE OrderDetail.OrderID=@OrderID
> >
> >If I delete a record from table Ordr directly in EM or
> run delete statement
> >from VB6 application then all records from OrderDetail
> table are deleted
> >with no problem too. So everything is as I expected.
> >If I run delete statement from Query Analyzer then the
> record from Ordr
> >table is deleted, but records in OrderDetail table remain
> untouched.
> >Why?
> >Thank you
> >Al
> >
> >
> >.
> >



Relevant Pages

  • Re: Logon triggers
    ... it's not that if you mess up the login trigger that no one can ... You can still connect on the DAC (Dedicated Administrator ... Connection) to drop the trigger. ... Event Notifications since in the future I want to log DDL & SQL Config ...
    (microsoft.public.sqlserver.security)
  • Re: Accidentally dropped DBO from database
    ... That error is due to having databases where the owner (dbo) ... is mapped to a login that doesn't exist on the server. ... a user in the database" when using sp_changedbowner, ...
    (microsoft.public.sqlserver.security)
  • Re: Error Message on Startup
    ... MS-MVP Windows XP/ Windows Smart Display ... > background [OWNER is the greyed out login name]). ... > related to me changing the admin account name from OWNER to my name. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Creating a Trigger on Access
    ... I don't think a 'SELECT' trigger would be a good idea since data could be ... access for reasons other than login. ... a stored procedure would be the ... DECLARE @ReturnCode int ...
    (microsoft.public.sqlserver.security)
  • Re: Rev 22 on the Prime emulator
    ... The way it worked is that any top-level UFD ... You had to know the owner password to login. ... didn't know the owner or non-owner password, ...
    (comp.sys.prime)