The SalesLogix login screen shows the version of SalesLogix running by checking the assembly version information of the Sage.SalesLogix.Web.SLXMembershipProvider assembly like this:
Version version = typeof(Sage.SalesLogix.Web.SLXMembershipProvider).Assembly.GetName().Version;
Now part of the reason for this is at the login screen, the user has not logged into the system so a lot of the application classes are not yet exposed. While you can continue to do use this method after logging in, you can also get this information using SalesLogix assemblies. Specifically the Sage.SalesLogix.System.dll. This assembly contains a Sage.SalesLogix.SystemInformation class that can be used to fetch details from the underlying database’s SYSTEMINFO table. One of the properties you can fetch from this table is the database version which will typically show you the major/minor release and any service packs.
The following code shows you how to retrieve this information:
Sage.SalesLogix.SystemInformation si = Sage.SalesLogix.SystemInformationRules.GetSystemInfo();
string version = si.DatabaseVersion;
throw new Sage.Platform.Application.ValidationException(version);
The code will return a string like “7.52” or “7.53″. This is predicated on the fact that the database has been properly updated following the Sage upgrade procedures.