I've encountered a mystifying phenomenon in executing the same ASP code (VBScript) on our two servers, test and production.
A SELECT query produces a list of medical procedures performed on patients, and associated reports (if any). The SELECT statement accumulates data from multiple tables using a LEFT OUTER JOIN clause, so that procedures which have no associated report will be listed. On the TEST server, the listed procedures include those which have no associated reports; the same code executed on PROD server does not display these procedures. I can't understand how or why two identically-configured IIS servers would produce different results using the same SELECT statement, but they are.
The code is exactly the same on each of the two boxes; the servers, while not identical hardware, are as close to identical software configuration as possible, even given that one is a test box. NT4, SP6a, IIS4...
The db is MS-Access97; I'm using a system-DSN to hit it. I've triple-checked that MDAC is the same on both boxes (v2.5SP1, as per db vendor specs). Comcheck results on TEST server showed 3 files are slightly newer than expected; PROD server show no discrepancies at all (1st time I've ever seen that happen). Regardless, I ran "comcheck /d" on PROD anyway, reconfigured / reinstalled MDAC 2.5SP1, just in case - no such luck.
The SELECT statement is listed below...
SELECT Demographics.Patient_ID, Demographics.SS_Patient_ID, " _
& "Demographics.Last_Name, Demographics.First_Name, " _
& "Event_Cath.SS_Event_Cath_ID, Event_Cath.Date_of_Cath, " _
& "Report_List.Title, Report_List.Status, Report_List.Event " _
& "FROM (Demographics INNER JOIN " _
& "(Event_Cath LEFT OUTER JOIN Report_List " _
& "ON (Event_Cath.SS_Event_Cath_ID = Report_List.SS_Event_ID " _
& "AND Report_List.Event = 'Event_Cath')) " _
& "ON Demographics.SS_Patient_ID = Event_Cath.SS_Patient_ID) " _
& "WHERE Demographics.Patient_ID = '" & Request("Pt_ID") & "' " _
& "ORDER BY Date_of_Cath DESC
Any reasonable theories will be appreciated & graciously entertained.