FIX: Sproc Created but No Code in Syscomments

ID: Q154001


The information in this article applies to:
  • Microsoft SQL Server versions 6.0, 6.5

Bug #: 15417 (SQLBUG_60_RW and SQLBUG_65)

SYMPTOMS

When you create a stored procedure (sproc) or a trigger, view, default, or rule within an EXEC statement, the object is created but no entry for it is recorded in syscomments.


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0.

Microsoft has confirmed this to be a problem in SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 5a for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.

For more information, contact your primary support provider.


MORE INFORMATION

The object can be used as normal, the only problems being that the text is not stored anywhere and that you cannot generate scripts for that object. The following script demonstrates the problem:


   drop proc p1
   go
   exec("create proc p1 as select 1")
   go
   sp_helptext p1
   go
   sp_help p1
   go 

Additional query words:

Keywords : kbbug6.50 kbfix6.50.SP5 kbbug6.00
Version : winnt:6.0,6.5
Platform : winnt
Issue type :


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.