Einzelnen Beitrag anzeigen

Delphi.Narium

Registriert seit: 27. Nov 2017
2.508 Beiträge
 
Delphi 7 Professional
 
#8

AW: D7 - BDE - Netzwerkproblem

  Alt 8. Jan 2024, 16:53
Gerade im Internet gefunden:
Delphi-Quellcode:
Here is part of the coding that shows you what is used (no alias etc...).
I setup a lot of these Params.Values and these are taken into account (user name, password etc...)
ps : there is maybe a monitoring tool to see what happens ?

.../...
 DB1:TDatabase;
 SP:TStoredProc;
.../...
 with DB1 do
  begin
   DatabaseName := 'MyDataBase';
   AliasName := '';
   DriverName := 'MSSQL';
   KeepConnection := True;
   LoginPrompt := False;
   SessionName := SessionName;
   with Params do
    begin
     Values['DATABASE NAME'] := 'MyDataBase';
     Values['APPLICATION NAME'] := 'Duplicates';
     Values['SERVER NAME'] := 'MyServer';
.../...
     Values['TIMEOUT'] := TimeOut;
    end;
.../...
 with SP do
  begin
   DatabaseName := DB1.DatabaseName;
   StoredProcName := 'MyStoredProcedure';
   Params.Clear;
.../...
  end;
Quelle: https://www.experts-exchange.com/que...s-for-BDE.html
  Mit Zitat antworten Zitat