Board index » delphi » Function to change IBX/Interbase connection string to UNC path

Function to change IBX/Interbase connection string to UNC path

We have used the IBX components to create a dialog box component that allows
to backup and restore an IB database. However, the backup database (for
whatever reason) must reside on the original server - we now have a need to
copy that file to a different destination.

Anybody know how to convert the IBDatabase connection string to a UNC path?
Thanks.

Kind regards

Mike

 

Re:Function to change IBX/Interbase connection string to UNC path


We have used the IBX components to create a dialog box component that allows
to backup and restore an IB database. However, the backup database (for
whatever reason) must reside on the original server - we now have a need to
copy that file to a different destination.

The problem is that the connection string uses the drive/folder relative to
the server and not a mapped drive (for example). Anybody know how to convert
the IBDatabase connection string to a UNC path?

Thanks.

Kind regards

Mike

Re:Function to change IBX/Interbase connection string to UNC path


Quote
Mike Noordermeer wrote:

> We have used the IBX components to create a dialog box component that allows
> to backup and restore an IB database. However, the backup database (for
> whatever reason) must reside on the original server - we now have a need to
> copy that file to a different destination.

> The problem is that the connection string uses the drive/folder relative to
> the server and not a mapped drive (for example). Anybody know how to convert
> the IBDatabase connection string to a UNC path?

> Thanks.

> Kind regards

> Mike

Starting in IBX 4.4 I put the property editors in the source\property editors
directory.  Look at the IBDatabaseEdit.pas file and you will see how that
property editor encode and decodes the string for how you can decode the server
information from tcp to namepipes (UNC)

--
Jeff Overcash (TeamB)   On waves of silver I dreamed of gold
(Please do not email    'Till I lost the peace that dreaming gives
 me directly unless     I dreamed of the moment of my own death
 asked.  Thank You)     That no one ever dreams and lives (Marillion)

Other Threads