I create an instance of TSQLConnection at runtime and get the following
exception:
"Driver already registered: TDBXDynalinkDriverLoader"
I do not know why I am getting this exception.
Does anyone know how to fix this?
My code looks like this:
TSQLConnection *SQLConnection = new TSQLConnection(0);
SQLConnection->DriverName = "MSSQL";
SQLConnection->LoginPrompt = false;
SQLConnection->KeepConnection = true;
SQLConnection->Params->Add( "HostName=HostName" );
SQLConnection->Params->Add( "DataBase=DataBase" );
SQLConnection->Params->Add( "User_Name=" );
SQLConnection->Params->Add( "Password=" );
SQLConnection->Params->Add( "BlobSize=-1" );
SQLConnection->Params->Add( "ErrorResourceFile=" );
SQLConnection->Params->Add( "LocaleCode=0000" );
SQLConnection->Params->Add( "MSSQL TransIsolation=ReadCommited" );
SQLConnection->Params->Add( "OS Authentication=True" );
SQLConnection->Params->Add( "Prepare SQL=False" );
SQLConnection->Open();