Announcements
I want to query the view that is used for the Aged AR report using SSMS. I find a select statement displays no data unless I first preview the report with Crystal. Yet, views I have created populate with data on the action of executing a select statement. What is the proper way to get an existing Dynamics SL view to display data with a SQL query, without first using Crystal to preview (and populate) the view layout?
Thanks for any advice
That is correct. The view has references to the RptCompany and RptRunTime tables with inner joins, meaning if there are no records in those tables, the query results will be empty. When the report is run, those tables get populated and the view will return records.
Are you saying those references are what keeps the view from populating when I do a select statement on it?
You should be able to take the view found in Crystal and remove any references to tables that begin with RPT.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156