Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 4 of 4 total |
Query does not use directory of its database component |
Fri, Jun 12 2009 12:44 PM | Permanent Link |
Uwe | Hi everyone,
I try to switch between different identical local databases. To switch I close the query and set the "databasename" property to the name of another TDBISAMDatabase objects "databasename". The Directory property of this DB component points to the right path with my tables. During call to Prepare, the query does not use the path from the DB component but the local app directory, so does not find the tables and raises an exception. Why the path of the DB component is ignored? (The "datadirectory" variable of the query shows the right db name but the path of my application) (DBISAM 4.23 Build 2 CS, Delphi 7) Thanks Uwe Held |
Fri, Jun 12 2009 1:24 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uwe,
<< I try to switch between different identical local databases. To switch I close the query and set the "databasename" property to the name of another TDBISAMDatabase objects "databasename". The Directory property of this DB component points to the right path with my tables. During call to Prepare, the query does not use the path from the DB component but the local app directory, so does not find the tables and raises an exception. Why the path of the DB component is ignored? (The "datadirectory" variable of the query shows the right db name but the path of my application) >> Are you using an explicit TDBISAMSession component ? If so, then make sure that your TDBISAMDatabase and TDBISAMQuery components all have their SessionName property set to the same value as the SessionName property of the TDBISAMSession component. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Jun 12 2009 4:19 PM | Permanent Link |
Uwe | Tim,
> Are you using an explicit TDBISAMSession component ? If so, then make sure ... No - default session (single user local app). Uwe |
Sat, Jun 13 2009 4:26 AM | Permanent Link |
Uwe | Tim,
sorry - my fault. The given Databasename property meanwhile was invalid... nonetheless thanks. Uwe |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |