FIX: sp_helptext Fails with Invalid Length Parameter Error (295459)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q295459
BUG #: 352608 (SHILOH_BUGS)

SYMPTOMS

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.

RESOLUTION

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 the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Modification Type:MajorLast Reviewed:11/5/2003
Keywords:kbBug kbfix kbSQLServ2000sp1fix KB295459