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

How to Bypass Next in COC in D365 X++

create movement journal through code in d365 FO x++