Re: Trigger Error
From: Keith (_at_.)
Date: 06/23/04
- Next message: kishor: "Re: date format"
- Previous message: David Portas: "Re: table name for "from""
- In reply to: Hari: "Re: Trigger Error"
- Next in thread: Wayne Snyder: "Re: Trigger Error"
- Reply: Wayne Snyder: "Re: Trigger Error"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 10:59:44 +0100
Is there any way of capturing the previous value of a TEXT column with a
trigger to audit the tables fully?
Thanks
"Hari" <hari_prasad_k@hotmail.com> wrote in message
news:usaalfQWEHA.1888@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> You cant do this with the datatype ntext , text and image, because thse
> datatypes are not logged.
> so trigger will not get the the previous state of deleted or updated
field.
>
> --
> Thanks
> Hari
> MCDBA
>
> "Keith" <@.> wrote in message
news:ui4phRQWEHA.3024@TK2MSFTNGP09.phx.gbl...
> > I am very new to SQL and have been building my triggers based on
examples
> > people have given me etc.
> >
> > My trigger is to copy the entire record into an audit table on
> > update/delete. Some of my columns are TEXT.
> >
> > I am getting an error saying:
> >
> > Server: Msg 311, Level 16, State 1, Procedure
> SYS_Individual_AUDIT_Trigger,
> > Line 9
> > Cannot use text, ntext, or image columns in the 'inserted' and 'deleted'
> > tables.
> >
> >
>
>
- Next message: kishor: "Re: date format"
- Previous message: David Portas: "Re: table name for "from""
- In reply to: Hari: "Re: Trigger Error"
- Next in thread: Wayne Snyder: "Re: Trigger Error"
- Reply: Wayne Snyder: "Re: Trigger Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|