I was using the sp_helptext very frequently to get the definition of an object.
Here is another easy way to get the definition of an object
SELECT OBJECT_DEFINITION(object_id) FROM sys.objects WHERE type='V'
You can use the, ALTER in the result set of the above query by using the REPLACE.
In the where condition you can specify the Procedure(P) or Functions(FN) as well.
ReplyDeleteAwesome! Thanks for sharing this informative post and Its really worth reading.
Microsoft Server 2016 Repair
Microsoft Server 2016 Installation