How to a create Pervasive ODBC Client connection via code? The following keeps returning an error... please help.
var
listParams: TStringList;
begin
listParams := TStringList.Create;
listParams.Add('IS_SYSTEM_DSN=True');
listParams.Add('IS_ENGINE_DSN=False');
listParams.Add('TCP_PORT=1583');
listParams.Add('SERVER_NAME=' + txtServer.Text);
listParams.Add('SERVER_DSN=' + txtDBName.Text);
listParams.Add('TRANSPORT_HINT=TCP:SPX');
listParams.Add('ARRAY_FETCH_ON=True');
listParams.Add('ARRAY_BUFFER_SIZE=8');
listParams.Add('UID=' + txtUserName.Text);
listParams.Add('PWD=' + txtPassword.Text);
PvSQLSession1.AddAlias(txtDBName.Text, listParams);
listParams.Free;
end;
ERROR = "Requested DTI call is not supported by P.SQL engine. Most probably you are using old or incompatible version. Alias name: XXXXX"
XXXX = txtDBName.Text entry
Delphi 5
Pervasive.SQL 2000 Service Patch 2A
Server is Windows 2000
Paul Wesson
paul@wessoft.com
var
listParams: TStringList;
begin
listParams := TStringList.Create;
listParams.Add('IS_SYSTEM_DSN=True');
listParams.Add('IS_ENGINE_DSN=False');
listParams.Add('TCP_PORT=1583');
listParams.Add('SERVER_NAME=' + txtServer.Text);
listParams.Add('SERVER_DSN=' + txtDBName.Text);
listParams.Add('TRANSPORT_HINT=TCP:SPX');
listParams.Add('ARRAY_FETCH_ON=True');
listParams.Add('ARRAY_BUFFER_SIZE=8');
listParams.Add('UID=' + txtUserName.Text);
listParams.Add('PWD=' + txtPassword.Text);
PvSQLSession1.AddAlias(txtDBName.Text, listParams);
listParams.Free;
end;
ERROR = "Requested DTI call is not supported by P.SQL engine. Most probably you are using old or incompatible version. Alias name: XXXXX"
XXXX = txtDBName.Text entry
Delphi 5
Pervasive.SQL 2000 Service Patch 2A
Server is Windows 2000
Paul Wesson
paul@wessoft.com