Topic: Run UpdateDatabase Manually

Hello MVD Wizards.

Is it possible to disable UpdateDatabase('') function to run background, I mean when the system starts?

I want to run it manually after showing my Main Form for having bulk data makes login form to show very late.

I done it on mysql using the disable_connectdialog but how can I do such thing on sqlite?

Thank you in advance.

brian

Re: Run UpdateDatabase Manually

up

brian

Re: Run UpdateDatabase Manually

frmStart.SQLConnection.Connected := False;

Re: Run UpdateDatabase Manually

sibprogsistem wrote:
frmStart.SQLConnection.Connected := False;

Thank you. This one helps.

brian

Re: Run UpdateDatabase Manually

brian.zaballa wrote:
sibprogsistem wrote:
frmStart.SQLConnection.Connected := False;

Thank you. This one helps.

Should this command be placed in the "begin end." section? According to my observations, connecting to SQLite occurs immediately after creating all the forms before opening the main form.

Визуальное программирование: блог и телеграм-канал.

Re: Run UpdateDatabase Manually

k245 wrote:
brian.zaballa wrote:
sibprogsistem wrote:
frmStart.SQLConnection.Connected := False;

Thank you. This one helps.

Should this command be placed in the "begin end." section? According to my observations, connecting to SQLite occurs immediately after creating all the forms before opening the main form.

Yes. Thank you for pointing it out. Tried it again and I think UpdateDatabase('') still runs in background even placing the code in the begin end. section

brian

Re: Run UpdateDatabase Manually

frmStart.SQLConnection.Connected := False; 
отключает базу данных
но при первой попытке обращения программы к базе данных соединение восстанавливается

Re: Run UpdateDatabase Manually

sibprogsistem wrote:

frmStart.SQLConnection.Connected := False; 
отключает базу данных
но при первой попытке обращения программы к базе данных соединение восстанавливается


Do you have a sample sir...
Thank YOu!