|
Getting a database name from a file
I'm a new Delphi programmer. I have a program set up to add/delete records from a database. The problem is, I need to read the database server, database, user, and password from a file so that it can be used with different databases. Right now I have it hardcoded to work. I can read the information I need from a file with no problem, I just don't know how to manipulate the ADOConnection so that I can change just the values I need to. Is this easily done or is something liek this hard to do? I know I probably just need to change the connection string on the ADOConnection, however that string has a lot of information that I don't want to change so I'm not sure how to go about this. Any suggestions? Thanks.
|