Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Server-side alias and ADSDBE

2 posts in Xbase++ Last posting was on 2012-03-01 15:10:01.0Z
Pascal Boivin Posted on 2012-03-01 14:04:45.0Z
From: "Pascal Boivin" <pascal.boivin@nbautomation.com>
Subject: Server-side alias and ADSDBE
Newsgroups: Advantage.Xbase++
User-Agent: XanaNews/1.19.1.320
Message-ID: <xn0hv2pj75k4qq000@devzone.advantagedatabase.com>
X-Ref: DevZone.AdvantageDatabase.com ~XNS:000000EC
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.70.11.19
Date: 1 Mar 2012 07:04:45 -0700
X-Trace: 1 Mar 2012 07:04:45 -0700, 69.70.11.19
Lines: 26
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Xbase++:1156
Article PK: 1140988

Hi

One of my customer want to hide data files. I move all file to an
hidden directory on the server, then create a "Server-side alias" to
point to this folder. Using Data Architect, everything is fine. And
using Windows Explorer, I can no longer see the DBF.

From my Xbase 1.9 app, I can connect to the hidden dictionnary via
ADSDBE, but I can not open any file using DbUseArea. I always get
invalid path error (error 7041), and in AdsErr.Adt, I can see

E:\Invisible\Autofab\autofab.add\UNITE.DBF

when I do

DbUseArea(.T., oSession, "UNITE", "UNITE", .T., .F.)

E:\Invisible\Autofab\autofab.add is the hidden dictionnary I'm
connected to.

In the dictionnary, table UNITE point to
E:\Invisible\Autofab\Data\UNITE.DBF

I'm not sure if the problem is with my code, ADSDBE, or something else.

Is anyone using "Server-side alias" with ADSDBE succefully?


Pascal Boivin Posted on 2012-03-01 15:10:01.0Z
From: "Pascal Boivin" <pascal.boivin@nbautomation.com>
Subject: Re: Server-side alias and ADSDBE
Newsgroups: Advantage.Xbase++
References: <xn0hv2pj75k4qq000@devzone.advantagedatabase.com>
User-Agent: XanaNews/1.19.1.320
Message-ID: <xn0hv2r8q7w13u001@devzone.advantagedatabase.com>
X-Ref: DevZone.AdvantageDatabase.com ~XNS:000000ED
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.70.11.19
Date: 1 Mar 2012 08:10:01 -0700
X-Trace: 1 Mar 2012 08:10:01 -0700, 69.70.11.19
Lines: 9
Path: solutions.advantagedatabase.com
Xref: solutions.advantagedatabase.com Advantage.Xbase++:1157
Article PK: 1140990

It was my error. I was connecting to

"E:\Invisible\Autofab\autofab.add\"

There was a "\" at the end! But this cause no error, only later when I
open tables.

So I can confirm myself XBase 1.90.342 with ADSDBE support "Server-side
alias".