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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to restrict the select of fields that are not needed in SQL executed in x++

(0) ShareShare
ReportReport
Posted on by 28
SQL executed in x++ will select fields that are not needed.
Is there any way to limit this for better performance?
I have the same question (0)
  • Martin Dráb Profile Picture
    237,656 Most Valuable Professional on at
    How to restrict the select of fields that are not needed in SQL executed in x++
    I think I've already covered it in your previous thread, limited fields of data sources in form from query.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    How to restrict the select of fields that are not needed in SQL executed in x++
    Hi Ko Yamazaki,
     
    I think you can create a best practice rule to to prevent the use of Query/Select statements without fields needed
     
    e.g.
    select * from SalesTable Where SalesId = ''
     
     
    Best regards,
    Mohamed Amine MAHMOUDI

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 776 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 402 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans