LucieLastic
Programmer
hi All
Wrote a simple app in D7 using 1 TQuery component. When doing the qry.Open, I expected Delphi 7 to prompt me for username and password but it didn't. I get the message 'General SQL error. Alias: odbc_wotever etc'. I've double check all the obvious things, setting databasename and making sure the alias name is right.
I was perplexed so I literally copied and pasted all the code and controls in to a new app in Delphi 5 and it worked as I expected (login prompt) - then the query opened.
Why does Delphi 7 not prompt me and Delphi 5 does? Do I need to set something somewhere? Also tried it with a TDatabase but still couldn't get it to work. I'm new to D7 and not too good with ADO yet so decided to do it the old BDE way as it's only a quick fix app.
many thanks
lou
Wrote a simple app in D7 using 1 TQuery component. When doing the qry.Open, I expected Delphi 7 to prompt me for username and password but it didn't. I get the message 'General SQL error. Alias: odbc_wotever etc'. I've double check all the obvious things, setting databasename and making sure the alias name is right.
I was perplexed so I literally copied and pasted all the code and controls in to a new app in Delphi 5 and it worked as I expected (login prompt) - then the query opened.
Why does Delphi 7 not prompt me and Delphi 5 does? Do I need to set something somewhere? Also tried it with a TDatabase but still couldn't get it to work. I'm new to D7 and not too good with ADO yet so decided to do it the old BDE way as it's only a quick fix app.
many thanks
lou