T
T
tempmon2015-05-19 13:00:38
Delphi
tempmon, 2015-05-19 13:00:38

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

1 answer(s)
U
UA3MQJ, 2015-05-20
@tempmon

You first open the ADOcon.connect() connection, maybe already at this stage there is an error - there is no connection with the connection string you specified (maybe the system entry does not have such an alias).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question