Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 3 of 3 total |
Running ElevateDB from a flash drive |
Thu, Apr 15 2010 11:34 PM | Permanent Link |
Richard ENT Technologies | Hi,
I'm having trouble getting an application to run correctly from a flash drive, probably because the drive letter chnages from machine to machine when you plug the flash drive in. I execute the following code in my applications FormActivate event: I use DatabaseDirectory := ExtractFilePath(Application.ExeName) + 'DATA\' to get the database path I then set Engine.ConfigPath := DatabaseDirectory; I follow that with Session.Execute('ALTER TABLE "MyDatabase" PATH ' + Engine.QuotedSQLStr(DatabaseDirectory)) When I try to execute my application, i get a 401 error "The path specified for the database MyDatabase does not exist" However, when I first put my application on the flash drive, and had it create the database automatically, it worked fine. |
Fri, Apr 16 2010 3:22 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Richard
Do you have UseLocalSessionEngineSettings (I do wish Tim had chosen a shorter, non-descriptive name) set to true in the engine. If so you need to set the LocalConfigPath in the session. Roy Lambert |
Sat, Apr 17 2010 6:38 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Richard,
<< When I try to execute my application, i get a 401 error "The path specified for the database MyDatabase does not exist" >> Somehow you're not setting the path correctly. If you want to send me the code that you're using, I can take a look and tell you what the problem is. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |