Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread AddRemoteDatabase (relative path to server)
Tue, Jan 15 2008 8:41 PMPermanent Link

"Ralf Bertoldi"
I added a remote database with

AddRemoteDatabase('test','''test')...

so, the server created a subdirectory \test, thats fine..


If I would ask the server in a stored proc with

ServerEngine.GetServerDatabase(MyRemoteParamDBName,
MyDatabaseDesc,MyDatabasePath);

MyDatabasePath is just 'test'.

If I would create a query in the stored proc and assign MyDatabasePath
to the DatabaseName of the query that won't work.

Is there any way to create a remote database by just give a name and
have it working in a stored proc?

I know, I can use another stored proc for this (get the path, create
the db, ..) but maybe I missed something of the standard function that
are already there.

TIA
ralf

Wed, Jan 16 2008 12:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ralf,

<< If I would create a query in the stored proc and assign MyDatabasePath to
the DatabaseName of the query that won't work.>>

Correct, which is why in your stored procedure you have to resolve any
relative path names as appropriate based upon where the relative paths to
the databases should be.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image