Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 xp_readmail - @skip_bytes limited to 65536?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-04-28 : 08:23:12
Jim writes "I've written a SQL Server 7.0 stored procedure to read messages from SQL Server Mail xp_readmail and the @skip_bytes parameter.

The procedure processes most messages OK, but for big messages it appears to reset the @skip_byles parameter back to zero when it reaches 65536.

The example I'm working with at the moment has a @msg_length of 103432 and the @skip_bytes parameter increments as ... 65025,65280,65535,65790,509,764 ... which basically means it starts reading the message from the start again and goes into an endless loop."
   

- Advertisement -