Any database requirement would be to view the created objects definition. And SQL Server is no different here. And in the SQL Server 2000 world we used to use the simple system stored procedure as sp_helptext to view the definition. For all backward compatibility this command still works for all the user defined objects wihtout any problems .
But the moment we try to find out the definition for system objects this fails in SQL Server 2005.NOTE: This used to work like a gem in SQL Server 2000. The error for the same would be like below:


SELECT OBJECT_DEFINITION (OBJECT_ID ('sys.sp_help') )Now this works flawlessly !!! Use the new syntax in Yukon hereon.
0 comments:
Post a Comment