Using UNC path to open files
Posted: Mon May 09, 2016 8:34 pm
Hi,
I came across this code example in the Xbase 1.90.355 documentation of the USE command.
PROCEDURE Main
LOCAL oSession
oSession := DacSession():New("DBE=ADSDBE;SERVER=\\ALASKA01\VOL1")
USE "\\ALASKA01\VOL1\Customer" SHARED VIA (oSession)
RETURN
I have tried opening a table on an Advantage server using the same approach. I am setting up a web server and I am trying to avoid using a drive letter (which works) on the advice of the network security technicians since according to them it creates a vulnerability. I would like to be able to use the form USE \\servername\path\tablename but I am getting the error message Error Base\0 Dbusearea.
I have also tried SET DEFAULT TO \\servername\path but this does not work.
Does anyone have any experience with using a UNC path in this way?
S Lorde
I came across this code example in the Xbase 1.90.355 documentation of the USE command.
PROCEDURE Main
LOCAL oSession
oSession := DacSession():New("DBE=ADSDBE;SERVER=\\ALASKA01\VOL1")
USE "\\ALASKA01\VOL1\Customer" SHARED VIA (oSession)
RETURN
I have tried opening a table on an Advantage server using the same approach. I am setting up a web server and I am trying to avoid using a drive letter (which works) on the advice of the network security technicians since according to them it creates a vulnerability. I would like to be able to use the form USE \\servername\path\tablename but I am getting the error message Error Base\0 Dbusearea.
I have also tried SET DEFAULT TO \\servername\path but this does not work.
Does anyone have any experience with using a UNC path in this way?
S Lorde