Answer the question
In order to leave comments, you need to log in
Why doesn't the ADO/Delphi component running under the system account work?
Good afternoon!
There is a working application written on Delphi with ADO components.
The application takes info from the log and sends it to the server.
The problem is that when you run the application on behalf of the system, it does not work.
The procedure in which the breakdown occurs
procedure TForm1.Ex(Sender: TObject);
var
ADOcon: TADOConnection;
ADOq: TADOQuery;
ConString: String;
begin
ADOcon:= TADOConnection.Create(nil);
ADOcon.ConnectionString:=ConString;
ADOq:=TADOQuery.Create(nil);
ADOq.Connection:=ADOcon;
ADOq.SQL.Clear;
ADOq.SQL.Text:='bla bla bla';
try
ADOq.ExecSQL; // breaks here
except
//
end;
end;
If you run the application as a user, it works fine, it breaks only from under the system account
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question