Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Display method on SQL server managment studio.

Posted on by Microsoft Employee

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

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Display method on SQL server managment studio.

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Display method on SQL server managment studio.

    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?

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Display method on SQL server managment studio.

    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...

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans