I am new to IBExpress and portate old cold into it (coming from FireDAC, which did some tricks automatically).The dataset is the only place where you can change the sql.
So I am not sure about the basics of IBExpress.
This I have at the moment and it works at design-time:
ibdatbase
ibconnection
tbtransaction
ibdatasource
ibdataset
=> DBGrid
Above this DBGrid are Buttons, which generate SQL select-Codes for my database.
Their results I want to see at runtime.
What I want to do at the shortest way:
1) change the SQL code
2) display the updated DBGrid
my questions
a) Where is the best place to change the SQL-request?
b) What has to be set to "active" or "connect" either for the first request or for an update of the SQL?You set the datasets active := false change the sql and then set it to true again.
c) How can I avoid, that the password is requested every time?on ibdatabase there is a property named loginPrompt set it to false.
Thank you for your answer.attach a sample application that demonstrates the problem to take a closer look.
Unfortunately it does not work for me.
At design-time the dataset asks for the keyword on setting it to active.
After I key it in another time, it works fine.
At runtime, I do not see this login-request, but the error message:
[Window Title]
Fehler
[Content]
Projekt project_Tiger hat Exception-Klasse »External: ACCESS VIOLATION« ausgelöst mit der Meldung:
Access violation reading from address $00000000000000C0.
In Datei 'frame_waren_.pas' in Zeile 37:
DataModule1.IBDataSet_Waren.Active:=true;
[Ok]
How shall this work?
The environment of the db is in a VM of more than 100 GB and the data inside are confidential.
In Datei 'frame_waren_.pas' in Zeile 37:Look at the order the forms are created (in project options>forms).
DataModule1.IBDataSet_Waren.Active:=true;
Thank you for the reply. I checked it, the series isAnd how is frame1 created?
- dbmodul
- form1
- frame1 => for the db which does not work
user_name=SYSDBA
password=masterkey
I cannot find a property "AllowAutostart" in my TIBtransaction.I'm probably thinking of IBX for Delphi.
Many, many years ago I messed around with transactions of Interbase.FireDAC also uses transaction (behind the scenes) but you have much less control over it.
Then I had FireDAC and it just worked without it.
I hardly can remember this old code. Did not save it neither.