Issues going from SDAC 7.3 to SDAC 8.3
Posted: Mon 22 Jul 2019 16:05
I just recently upgraded to SDAC 8.3 and my programs will compile, but will not run. So far, the issue I'm seeing is that it hangs when i try to set the MSConnection->Server. See bold line below for how I'm setting it.
MSConnection = new TMSConnection(NULL);
switch (MSSQLAuthorization) {
case Auth_Server: {
MSConnection->Authentication = auServer;
break;
}
default: {
MSConnection->Authentication = auWindows;
break;
}
}
MSConnection->ConnectionTimeout = 45;
MSConnection->Options->DefaultLockTimeout = 65000;
// MSConnection->Options->Provider = prNativeClient;
MSConnection->Username = UserID;
MSConnection->Password = Password;
MSConnection->Database = MSSQLDatabaseName;
MSConnection->LoginPrompt = false;
if (NotSet(MSSQLServerName)) {
strcpy(MSSQLServerName,"(local)");
}
MSConnection->Server = MSSQLDatabaseName;
MSQuery = new TMSQuery(NULL);
MSQuery->Connection = MSConnection;
MSQuery->LockMode = lmNone;
MSQuery->FetchAll = true;
MSConnection = new TMSConnection(NULL);
switch (MSSQLAuthorization) {
case Auth_Server: {
MSConnection->Authentication = auServer;
break;
}
default: {
MSConnection->Authentication = auWindows;
break;
}
}
MSConnection->ConnectionTimeout = 45;
MSConnection->Options->DefaultLockTimeout = 65000;
// MSConnection->Options->Provider = prNativeClient;
MSConnection->Username = UserID;
MSConnection->Password = Password;
MSConnection->Database = MSSQLDatabaseName;
MSConnection->LoginPrompt = false;
if (NotSet(MSSQLServerName)) {
strcpy(MSSQLServerName,"(local)");
}
MSConnection->Server = MSSQLDatabaseName;
MSQuery = new TMSQuery(NULL);
MSQuery->Connection = MSConnection;
MSQuery->LockMode = lmNone;
MSQuery->FetchAll = true;