Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Has anyone met a bug Find similar branches


strahov   (2001-12-05 15:32) [0]

when connecting to an MS SQL 7.0 type database
DataBase1.connected: = true;
in fact, it doesn’t perform the connection as it should, and regardless of the value of the above property, when the first query is opened, the standard connection dialog flies out again, and if everything is OK again, then everything else is decent. The output can be connected via BDE type
DataBase1: = session.OpenDataBase ("Name");
But how in this case to get away from the standard diploma window offered by Bormann for connecting to the database?
Best regards



Tonie   (2001-12-05 15:40) [1]

1. It looks like your query is not attached to DataBase1
(property QueryX.DataBaseName = DataBase1.DataBaseName should be and not Alias ​​in your database ...)

2. And Login Promt is disabled by the DataBase1.LoginPromt property

3. And all this in Help exists



strahov   (2001-12-05 16:08) [2]

I think this is not a solution to the problem. Take connect to the database using the installation of St.
connected: = true;
and as I wrote above. Then, through the Debug Inspector (Ctrl + Left Button), look at the contents of the DataBase1 and enjoy the difference in the values ​​of the variables. In QueryX.DataBaseName, you need to specify an alias for the portability of the database from one machine to another, setting up only BDE. This is in the help. Login Promt for OpenDataBase via BDE is not needed, because the opening is by name (character string) in BDE and the function itself is the value of a connected database with parameters from BDE.
Best regards



Tonie   (2001-12-05 18:09) [3]

> In QueryX.DataBaseName you need to specify an alias,
Then for each query you will have your own connection, so many times, and login will need to be done, for that there is TDataBase, DataBase1 has the property AliasName there and write Alias, and they set the DataBaseName themselves and use the rest in the DataBaseComponents, then Promt pops up only with DataBase .Connected: = true and everything works ...

... Delphi5 / Demo / Db / MastApp see unit DataMod





Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.55 MB
Time: 0.021 c
4-22470
Shevchenko Sergey
2001-11-02 13:32
2002.01.08
Introduction


1-22245
T2
2001-12-16 07:12
2002.01.08
Gost & best crypt


14-22388
Merlin
2001-11-08 11:43
2002.01.08
Another dirt in the pantry


14-22404
Mjh
2001-11-05 14:58
2002.01.08
Ineta cost (hour)


3-21912
Sergei N.
2001-12-04 06:23
2002.01.08
Handling dates from IB to Delphi and back





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish