Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
Kristofer Gafvert #1
Was the text column changed?
I have a trigger on update, but i need to know if a specified column of the
data type TEXT was changed or not. Since it's TEXT, i cannot use '=', so,
is there any other way to do this?
Thanks!
--
Regards,
Kristofer Gafvert
[url]http://www.ilopia.com[/url] - Useful help for Windows Server 2003
Reply only to newsgroup(s), if you by some reason must contact me, remember
to remove the "online" part of my address.
Kristofer Gafvert Guest
-
Two-column text inside one-column text box?
Hello everybody, I'm working on a small size book with a one-column text box threaded through the whole thing. There are some short lists that I'd... -
Put `text` column in another table?
Hi, usually, use of a single table is recommended for performance as only one seek time is required. However, when a table include many columns... -
Image in header column (not replacing column header text)
I have a sortable (asc/desc) datagrid and would like to add a small arrow icon (down/up) next to the column header text to improve the UI. Is this... -
identify changes in text box when changed by code
I have a list box that use code to populate a bound textbox when the list box is double clicked. I want to attach an event whenever the textbox... -
Text size in code view changed?
This is a new one for me ... I am working with some HTML a programmer gave me to pretty up with CSS. I finished working on one file, closed it,... -
David Browne #2
Re: Was the text column changed?
"Kristofer Gafvert" <kgafvertONLINE@ilopia.com> wrote in message
news:OUloRlXQDHA.3796@tk2msftngp13.phx.gbl...the> I have a trigger on update, but i need to know if a specified column ofFirst check if the column was even updated with UPDATE(column).> data type TEXT was changed or not. Since it's TEXT, i cannot use '=', so,
> is there any other way to do this?
>
> Thanks!
>
Then check the datalength(), if that's different, it changed.
If the column was updated and the datalength is the same, then you must read
through it 8000 characters at a time using substring() and compare the
results.
David
David Browne Guest
-
Kristofer Gafvert #3
Re: Was the text column changed?
Thanks!
--
Regards,
Kristofer Gafvert
[url]http://www.ilopia.com[/url] - Useful help for Windows Server 2003
Reply only to newsgroup(s), if you by some reason must contact me, remember
to remove the "online" part of my address.
"David Browne" <davidbaxterbrowne no potted [email]meat@hotmail.com[/email]> wrote in
message news:#VD9L$XQDHA.4024@tk2msftngp13.phx.gbl...so,>
> "Kristofer Gafvert" <kgafvertONLINE@ilopia.com> wrote in message
> news:OUloRlXQDHA.3796@tk2msftngp13.phx.gbl...> the> > I have a trigger on update, but i need to know if a specified column of> > data type TEXT was changed or not. Since it's TEXT, i cannot use '=',read> First check if the column was even updated with UPDATE(column).> > is there any other way to do this?
> >
> > Thanks!
> >
> Then check the datalength(), if that's different, it changed.
> If the column was updated and the datalength is the same, then you must> through it 8000 characters at a time using substring() and compare the
> results.
>
> David
>
>
Kristofer Gafvert Guest



Reply With Quote

