Fiel ntext whit UpdateText
From: Frank Dulk (fdulk_at_bol.com.br)
Date: 12/15/04
- Next message: Dan Guzman: "Re: SP with RETURN @@IDENTITY returning 0??"
- Previous message: John Baima: "Re: Getting the right number of records back"
- Next in thread: Louis Davidson: "Re: Fiel ntext whit UpdateText"
- Reply: Louis Davidson: "Re: Fiel ntext whit UpdateText"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Dec 2004 22:35:16 -0200
would like to update a field of the type ntext, but all register them that
are in a select.
I tried the code below, but he only updates the last record:
CREATE PROCEDURE SPU_EtiquetasRevBaixar
@pDataEnvio AS NVARCHAR(10),
@pEtiqueta AS NVARCHAR(255),
@pStatus AS INT
AS
DECLARE @Msg AS BINARY (16)
DECLARE @MsgAtu AS NVARCHAR(255)
SET @MsgAtu = @pDataEnvio + ' - ' + @pEtiqueta + Char(13) + Char(10)
SELECT @Msg = TEXTPTR(tbl_Cliente.Observacoes) FROM tbl_EtiquetasRevTemp
INNER JOIN tbl_Cliente ON (tbl_EtiquetasRevTemp.Codigo =
tbl_Cliente.Cod_Cliente)
WHERE (tbl_EtiquetasRevTemp.Status=@pStatus)
UPDATETEXT tbl_Cliente.Observacoes @Msg 0 0 @MsgAtu
GO
- Next message: Dan Guzman: "Re: SP with RETURN @@IDENTITY returning 0??"
- Previous message: John Baima: "Re: Getting the right number of records back"
- Next in thread: Louis Davidson: "Re: Fiel ntext whit UpdateText"
- Reply: Louis Davidson: "Re: Fiel ntext whit UpdateText"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|