Microsoft
Software
Hardware
Network
Question : Delphi 2009 BDE Connection Help
Hi guys this is my first post, so please bear with me if my question is not easy to understand.
i have created a new delphi form application with dbgrid / datasource / tquery.
Datasource1's Dataset is Query1
Dbgrids's Datasource is Datasource1
Tquery1's Database name is DHL in this case which i have added an odbc connection and tested outside of delphi and works fine when testing.
my goal was to get rid of the prompt for the name and password when i run a query against the database but when i take to the next stage and add a Database1 to the project and give alias as DHL and database name as refence to use for the tquery. it works fine if the login box appears and i fill out details.
but if i switch off login prompt and start using the parameters to auto poputlate these fields it gives me a error "unknown username or password . login failed for user (null). reason: not associated with a trusted sql serve"
now if i install sql server locally and run the same routine against a local database and adding it has another odbc sql server connection for the program to reference it works fine. its really strange that for the sake of specifying the fields database parameters it fails but if i leave login box on then the connection is fine if i manually fill them out.
i have been reading for weeks on this issue and have asked the question as a last resort. I have also read up on using ado connections but this is not a route i want to go at the moment due to my belief it runs slower querys and i noticed the database being locked for longer periods of time
kindest regards
steve
Answer : Delphi 2009 BDE Connection Help
Dear TG-Steve,
The used parameters in TDatabase params was
USER NAME=your user
PASSWORD=your password
and TDatabase.LoginPrompt=Fals
e ?
Random Solutions
Excel spreadsheet graph
Where does RHEL5 get update & packages from?
How to specify different languages for different users using Windows 2008 Teminal Server?
Migrate from cPanel to Plesk
builing a basic Advertise with Us Functionality!
MS Excel 2007 & PDF - Exporting to PDF takes long hours!
Computer boots only so often
Assigning values to a range of cells in Excel with VBA
Crystal Report Security
Display logon message to new users at first logon.