FIX: sp_helptext Fails with Invalid Length Parameter Error

This article was previously published under Q295459
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 352608 (SHILOH_BUGS)
In SQL Server 2000, using the sp_helptext command on a stored procedure may result in the following error:
Invalid length parameter passed to the substring function.
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Article ID: 295459 - Last Review: 01/16/2015 22:22:05 - Revision: 3.2

  • Microsoft SQL Server 2000 Standard Edition
  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB295459