How to see the query of view in Sql Server in d365 FO

 select definition

from sys.objects     o
join sys.sql_modules m on m.object_id = o.object_id
where o.object_id = object_id( 'dbo.ViewName')
  and o.type      = 'V'

Comments

Popular posts from this blog

step 20 Update script for service model: AOSService on machine: CR-VM-Test-1

How to Bypass Next in COC in D365 X++