i try to send messages longer than 7990 characters from a text field
in SSQL2000. Unfortunatly the messages get cut off after 7990
character.
I did everything which is described in BOL (see below). It does not
solve the problem. Upgraded to newest Outlook Client and tried to send
as an attachment also. No success though.
Does anybody have a hint before i contact Microsoft.
Regards
Yorn Ziesche
E. Send messages longer than 7,990 characters
This example shows how to send a message longer than 7,990 characters.
Because message is limited to the length of a varchar (less row
overhead, as
are all stored procedure parameters), this example writes the long
message
into a global temporary table consisting of a single text column. The
contents of this temporary table are then sent in mail using the
@query
parameter.
CREATE TABLE ##texttab (c1 text)
INSERT ##texttab values ('Put your long message here.')
DECLARE @cmd varchar(56)
SET @cmd = 'SELECT c1 FROM ##texttab'
EXEC master.dbo.xp_s endmail 'robertk',
@query = @cmd, @no_header= 'TRUE'
DROP TABLE ##texttab