Hi all,
I'm doing a few experiments with Reporting Services. I've stumbled upon a question regarding multiple companies in one database.
How would I, dynamically, create a SELECT statement that would give me e.g. all records from T79 "Company Information"?
Something like:
SELECT * FROM [*$Company Information]
Thanks in advance.
Best regards
Kenneth Fuglsang
Denmark
0
Comments
That way when you run the query you can set a where clause
Where CompanyName = UserFilter
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Great. Let us know how you solved it .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
The view consisted of a SELECT string with UNION ALL in it.
That's indeed the main idea that I implemented... .
But I didn't create a view to just do a SELECT on it. My view was necessary as some kind of company-related distinct.
I just build my SELECT with UNION in my Stored Procedure, and execute that SQLString at the end of the SP.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Just bookmark this .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog