Article View: borland.public.interbase.opensource
Article #5510Re: Suggestion on EXTERNAL FILE clause
From: Craig Stuntz (TeamB)
Date: Fri, 16 Mar 2001 19:33
Date: Fri, 16 Mar 2001 19:33
33 lines
2290 bytes
2290 bytes
Rodrigo Kierulff wrote:
> The clause EXTERNAL FILE of CREATE TABLE commnad
> should accept a remote external file, ie:
>
> CREATE TABLE ext_tab EXTERNAL FILE "rem_host:c:\temp\ext_file.txt"
>
> What I mean is that now, in IB, the reference to a host
> other than the server ("rem_host:") is not allowed.
Right now, the engine won't accept a remote host for any file (external
or "normal") due to locking concerns. That is, if the engine only
accepts local files, and if by definition there can only be one IB
server process on a single machine, then there is a guarantee that it's
impossible for two server processes to attempt to access the same file
at the same time.
So your suggestion is not impossible, but it does pose an important
issue, which is how to prevent two different servers from attempting to
use the file at once. Since many people use external files to transfer
data from one DB to another, this is not a minor consideration.
Various solutions to the issue have been proposed, but I'm not an
expert on this subject. Perhaps someone else can discuss it.
-Craig
--
Craig Stuntz (TeamB) Senior Developer, Vertex Systems Corp.
Delphi/InterBase weblog: http://delphi.weblogs.com
Use Borland servers; posts via others are not seen by TeamB.
For more info, see http://www.borland.com/newsgroups/genl_faqs.html
Technical Details
Message-ID:
<3AB26A7D.3E5C83A8@no_spam.vertexsoftware.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!sienna.impulse.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!208.235.151.194References:
<3ab26382_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106772,ce87a24f86fb52c X-Google-Attributes: gid106772,public X-Google-ArrivalTime: 2001-03-16 14:17:45 PST Message-ID: <3AB26A7D.3E5C83A8@no_spam.vertexsoftware.com> Date: Fri, 16 Mar 2001 14:33:17 -0500 From: "Craig Stuntz (TeamB)" <cstuntz@no_spam.vertexsoftware.com> Organization: Vertex Systems Corporation X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.interbase.opensource Subject: Re: Suggestion on EXTERNAL FILE clause References: <3ab26382_2@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.235.151.194 X-Trace: 16 Mar 2001 11:35:59 -0800, 208.235.151.194 Lines: 33 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!sienna.impulse.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!208.235.151.194