![]() Open Login formĪs mentioned in SQLdb Tutorial1, a user should login to the database using a form (or perhaps a configuration file that is securely stored), not via hardcoded credentials in the application. see the string in the // T*ConnectionDef.TypeName for that connector. Make sure the ChosenConfig.DBType string matches // the connectortype (e.g. actual connector type is determined by this property. var Conn : TSQLConnector begin Conn := TSQLConnector. To use multi-database support, instead of your specific T*Connection such as TIBConnection, use TSQLConnector (not TSQLConnection), which dynamically (when the program is running) chooses the specific T*Connection to use based on its ConnectorType property: You can't use T*connection specific properties (like TIBConnection.Dialect to set Firebird dialect).Each database has its own dialect it is of course possible to call db-specific SQL, this can grow into a maintenance problem. More complicated SQL will likely need to still be adapted.the user/programmer can dynamically use any sqldb t*connection, so he can choose between dbs.Using any database and a login form, you can support multiple different database servers/embedded libraries that SQLDB supports. get data out of the controls and back into the database.get database data into normal controls (instead of database controls). ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |