web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Display method on SQL server managment studio.

(0) ShareShare
ReportReport
Posted on by

Hello all,

I have to create a view on Sql server managment studio,where i have to insert 4 fields fromTaxGroupData table,but one of them is a display method( TaxGroupName()).

Does anyone knows how to add this display method on views that are created direct from SQL server managment studio?

Thank you in advance!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Display methods don't exist in database; you would have to redesign the logic. In this case, you can simply join TaxTable and take TaxName from there.

    But may I ask you what you're trying to achieve? You shouldn't access AX database directly...

  • Community Member Profile Picture
    on at

    Yeah i know but in this case the requirement was to access direct the database. Isn't the same thing if we create them from AX?

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    I don't know what you mean by "them" in "if we create them from AX", but there is a huge difference in accessing AX database directly instead of going through the application layer. You must open up the database, you bypass AX security, you bypass caching, you can't utilize AX business logic (that's what this thread is about), you must deal manually with things like partitions, data areas, table inheritance and so on and so on.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans