We create MAS_### DSN's with default database. This makes changing company codes not easy for existing external queries, but new queries are very user friendly.
Reports run from Sage should auto-select the correct company code (not prompt).
I do not remember having to go report by report for conversion to SQL. MASCRCW should work for *CUSTOM.RPT reports (unless they are being converted from pre-framework table structures).
Look at the way Sage brings CompanyName and CompanyCode into forms (blank formula fields...). You can do that in other reports too, without a table link for the data.
One of the common issues with converting to Premium is Date fields to DateTime. Why Sage chose to use DateTime in SQL is a complete mystery to me.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
------------------------------
Original Message:
Sent: 07-21-2020 10:47
From: Wayne Schulz
Subject: Custom Reports conversion Advanced to Premium
I don't know if this is the BEST solution but when I've upgraded non-SQL to SQL I created an ODBC ( ie SAGEDATA ) to the SQL database and added it to the desktop and had people use that ODBC ( read-only ) to connect to the SQL data.
Be advised if your users are connecting to multiple companies and are used to SOTAMAS90 prompting for the company code during refresh - you'll have to devise a way to easily switch between company codes.
The ODBC to SQL lets you specify a default database but you can't have it prompt for the company code like SOTAMAS90 does without some behind-the-scenes work.
The reports I've converted were pretty quick to make the ODBC swap since the structure doesn't change - though you can't run them through the Sage tool you will have to go into each one separately using Crystal. Here's a short YouTube outlining the steps - https://www.youtube.com/watch?v=9pJcAhk_ZhQ
I think if you add the reports to the CUSTOM menu then users would be prompted for the company code.
------------------------------
Wayne Schulz - Schulz Consulting - 860-516-8990
------------------------------