Here is the debug info:
For odbc Connect(), MemberData_44851 is not used. Place dsn in 1st parameter.
(odbc_mssql): SET CONCAT_NULL_YIELDS_NULL OFF
IM002: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
localhost: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
(odbc_mssql): SELECT * FROM vw_MoodleFull2 WHERE UserName = '500833' AND Password = '12345'
IM002: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
With debugging turned off I simply continue to get the invalid login message.