Skip to content

Instantly share code, notes, and snippets.

@bferronato
Created May 25, 2017 17:53
Show Gist options
  • Save bferronato/648609424d74cf05f995ba0c48d94aa8 to your computer and use it in GitHub Desktop.
Save bferronato/648609424d74cf05f995ba0c48d94aa8 to your computer and use it in GitHub Desktop.
select cast(definition as varchar(4000))
from sys.objects o
join sys.sql_modules m on m.object_id = o.object_id
where o.object_id = object_id( 'dbo.V_NF_ENT_FORN_NOTA')
and o.type = 'V'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment