You are not logged in.
Pages: 1
My woes with attach database continues. I am not able to attach a non-existent database.
Same case as :memory: as mentioned in the encryption thread. I believe both issues are related as a memory database does not exist when attached.
As this not related to encryption, I thought I will rather start a new thread.
I tried both codes below:
DBsUser.ExecuteNoResult('ATTACH DATABASE ? AS Savefile;', [UserFileName]);
and
QRsUser.Prepare('ATTACH DATABASE ? AS Savefile;');
QRsUser.BindTextS(1, UserFileName);
QRsUser.ExecutePrepared;
both results in the error:
'SQL logic error or missing database.'
Offline
Sorry for the delay in replying as I was away fort a week.
Now I found the problem with my program logic which prevented the attach statement from executing in certain situations. Now it is working OK.
I am still puzzled with :memory:. Let me test it a few more times before reporting.
Sorry for the inconvenience.
Offline
Pages: 1