Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Running ElevateDB from a flash drive
Thu, Apr 15 2010 11:34 PMPermanent 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 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate 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 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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
Image