Re: UPDATETEXT
From: simon (simon.zupan_at_stud-moderna.si)
Date: 07/21/04
- Next message: Ibrahim Shameeque: "RE: stored procedure " update & case" question"
- Previous message: Roji. P. Thomas: "Re: stored procedure " update & case" question"
- In reply to: Ibrahim Shameeque: "RE: UPDATETEXT"
- Next in thread: Ibrahim Shameeque: "Re: UPDATETEXT"
- Reply: Ibrahim Shameeque: "Re: UPDATETEXT"
- Reply: Aaron [SQL Server MVP]: "Re: UPDATETEXT"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Jul 2004 12:43:12 +0200
Hi,
if I replace first null with 0 then I lost old value, the new value
overrides the old value, the result is:
';new text'
Thank you,
Simon
"Ibrahim Shameeque" <IbrahimShameeque@discussions.microsoft.com> wrote in
message news:077915EC-3B62-42F2-BE04-C5BA3C9C8E2E@microsoft.com...
> Hi
> Give an insert_offset value. starting from 0 for inserting to the begining
of the text data. In your update statement, replace the first null with 0.
Thanks
> --
> Ibrahim
>
>
>
> "simon" wrote:
>
> >
> > Declare @oldValue varbinary(16)
> > Declare @str varchar(8000)
> >
> > Select @oldValue =TextPtr(description) From t_narocilnica where ID=1
> >
> > set @str=';new text'
> >
> > UPDATETEXT t_narocilnica.description @oldValue NULL NULL @str
> >
> > Thiss appends the new text to the old description at the end of the
text.
> >
> > If I had old description:
> >
> > 'old text'
> >
> > than I have now: 'old text;new text'
> >
> > It always append to the end of the text.
> > How can I append the new text to the begining, I would like that my
result
> > is:
> > 'new text;old text'
> >
> > Thank you,
> > Simon
> >
> >
> >
> >
- Next message: Ibrahim Shameeque: "RE: stored procedure " update & case" question"
- Previous message: Roji. P. Thomas: "Re: stored procedure " update & case" question"
- In reply to: Ibrahim Shameeque: "RE: UPDATETEXT"
- Next in thread: Ibrahim Shameeque: "Re: UPDATETEXT"
- Reply: Ibrahim Shameeque: "Re: UPDATETEXT"
- Reply: Aaron [SQL Server MVP]: "Re: UPDATETEXT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|