Version: SQLServer 8
I would like to view the contents of a stored function in sqlserver, i.e. what exactly the function is doing.
None of the options listed
Whether it is Stored Procedure OR Function OR any SQL object below script will give the full definition
USE SELECT OBJECT_DEFINITION (OBJECT_ID('')) AS ObjectDefinition
where OBJECT NAME could be your object name such as Stored Procedure / Function / Trigger ...etc name