FIX: Sproc Created but No Code in SyscommentsID: Q154001
|
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.
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.
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: April 21, 1999